Fix improper use of re.escape() in tests. (#4814)

1 file changed