As things are now, if you pass both a compiled `regex` and `flags`, the `flags` argument is silently ignored.

We should either recompile the `regex` with the new `flags` or raise an error (`TypeError`?).

I think the latter makes more sense.