text-motion: change text_bracket_match API