Build, test, and debug regular expressions
This regular expression is designed to parse and extract complete Python function declarations. It captures the entire function block, including its indented body, and provides specific named capture groups for the function name and its parameters. It is ideal for static code analysis, documentation generation, or any script that needs to programmatically inspect Python source code structure.