Fix string literals to avoid deprecation warnings in regexp patterns
In LLDB, where tests run with the debug version of Python, we get a
series of deprecation warnings because escape sequences like \( are
being treated as part of the string literal rather than an escape for
the regexp pattern.
Differential Revision: https://reviews.llvm.org/D62882