Test, validate and match regular expressions
This regex matches commas that are not inside parentheses, allowing CSV splitting while preserving parenthesized sub-groups such as function arguments or grouped data. It uses a negative lookahead to exclude commas within balanced parentheses, making it useful for parsing CSV lines where fields may contain commas inside brackets.