Test, validate and match regular expressions
Matches one or more characters that are not commas or square brackets, but only when immediately followed by an opening bracket or a comma (positive lookahead). Useful for extracting tokens or keys from bracketed/delimited formats like 'key[value],other[thing]', capturing the text segments before delimiters without consuming the delimiters themselves.