Test, validate and match regular expressions
This regex matches variable assignments in JavaScript/TypeScript where a string literal is unnecessarily wrapped in curly braces, such as `const foo = { 'bar' }`. It captures the assignment portion (variable name and equals sign), the full quoted string, and the raw string content separately, enabling find-and-replace refactoring to strip the redundant braces. Commonly used for cleaning up React/TypeScript code style issues.