In LLDB, where tests run with the debug version of Python, we get a series of deprecation warnings because \( escape sequences are treated as part of the string literal rather than an escaped paren for the regexp pattern.
I believe the change preserves the original intent rather than the actual behavior when running with Python 3, but another pair of eyes would be appreciated.
The fact that \' will remain as \' bugs me because the ' need not be escaped as part of the regex. Hopefully that won't be deprecated one day.