Build, test, and debug regular expressions
Matches a foreach loop containing an await expression, capturing the loop variable, the code before the await, and the code after it. This regex is useful for identifying asynchronous operations inside loops, which may indicate sequential processing that could be parallelized or refactored. Note that it uses a simplistic brace-matching approach and may fail on nested braces or complex statements.