binaryninja.re.compile

compile(pattern, flags=0)

Compile a regular expression pattern, returning a Pattern object.