That's where i made the mistake, i didn't put parenthesis near the \2.
There is a slight problem, where putting these parenthesis in cause a 3rd capture group to be evaluated. Getting some weird behavior now.
I moved it and it seems to be working in the debugger, but still capturing a 3rd group, which is a single white space by itself.