Fix regex misuse