Updated _is_regexp to recognize an _sre.SRE_Pattern instance._