Build, test, and debug regular expressions
Matches Python type annotations in two forms: colon-based variable/parameter annotations (e.g., ': int', ': str') and arrow-based return type hints (e.g., '-> None'). Typically used with a replace-to-empty operation to strip type hints from code, useful for compatibility with older Python versions or code simplification. Note it handles simple and bracketed types but not dotted module paths like typing.List.