Updated regexp to accept `-` in resource path segments.