Test, validate and match regular expressions
This regex matches GraphQL entity declarations in GitLab API queries, capturing the entity name (while explicitly excluding the word "group") and any associated filter arguments inside parentheses. It is useful for parsing structured query logs or extracting specific fields like `projects(id: "123") {` from GraphQL payloads.