I changed the goto labels to individual numbers.
I don't understand the breakdown you just did, when I go into notepad++ and check the brackets, they all close on another and there's no extras.
The one you say doesn't close anything, closes the opening ( infront of --> (($regex($1-,%purge)). And there's no extras.
Edit:Image of it with
highlight syntax highlight syntax
First regex syntax First regex syntax Isn't it closed?