[Python-ideas] hybrid regex engine: backtracking + Thompson NFA