Add example using `re.escape` to escape arbitrary literal strings which might contain regular expression characters like `.` or `)`. Closes #10595