Test, validate and match regular expressions
Matches any parenthesized text including the parentheses themselves, along with any leading and trailing spaces. The negated character class [^)] ensures it captures everything inside the parentheses up to the first closing parenthesis, making it safe for nested-free content. Typically used with global string replacement to strip annotations, clarifications, or abbreviations from text while consuming surrounding spaces to avoid leftover double spaces.