Test, validate and match regular expressions
This regex is designed to identify proper names consisting of one or more capitalized words (e.g., "John Doe") that are bounded by whitespace or punctuation. Additionally, it can extract text enclosed in parentheses, such as a role or title, if it immediately follows a matched name (e.g., "John Doe (Admin)"). It is useful for parsing contact lists, document signatures, or extracting structured name-role pairs from unstructured text.