Fix perf bug causing regex not to be requested as compiled