Allow wildcards in the last path segment to end with an extension