honor the m, s, and i flags in the Regex module

Previous versions of this forcefully set re.DOTALL, which is the same as
setting the s flag, so the s flag was always enabled before.