Test, validate and match regular expressions
This regular expression is built to parse GraphQL query statements, extracting the operation name and any arguments passed within parentheses. It captures the query name into a `function_name` group and the variables into a `function_args` group. It is highly useful for building basic GraphQL parsers, linters, or interceptors that need to inspect queries before they are executed.