Remove the `m` flag: it cannot be applied if you receive a compiled regular expression.