Testing against the code block from the regex101 link in VS code, it seems like the first section of the regex is unnecessary. The text can be matched by just using [^(]+\(\n
[^(]+\(\n