Port the regex path matching from Symfony to our CompiledRoute class so that we can match placeholder-using paths.