Build, test, and debug regular expressions
This regex matches TypeScript-style optional parameter declarations like `param?: type` or `param?: type[]`. It captures the parameter name and validates the syntax with an optional question mark, whitespace, a type name, and an optional array bracket notation. Useful for parsing type definitions, extracting parameter names, or validating TypeScript function signatures in code analysis tools.