Escape patterns in `re.compile()`