The input is a comma-separated list of fields.
Here is an example.
tna,performance,ma[performance,3],price
The issue is that some of the "fields" have parameters specified in square brackets and those parameters also have commas.
What RegEx could I use to break a string like that on commas, only when they are outside of brackets. I want the end result to be
tna
performance
ma[performance,3]
price