binaryninja.re.escape

escape(pattern)

Escape special characters in a string.