Allow patterns compiled with re replacements, like regex

Python doesn't support `\p{Lu}`, etc. which is bananas.

Thankfully, `regex` does support them.

However, `re.match(pattern, value)` will blow up if pattern is a compiled `regex` pattern.

This PR stops the blow-up.