Build, test, and debug regular expressions
This regex matches and parses Python-style import statements, including variations like `from module import component as alias`. It is designed to capture the source module, the imported components, and any optional aliases used for renaming. The pattern accounts for leading whitespace or colons and requires a line break at the end of the statement, making it ideal for code analysis tools and dependency extraction.