fix(lib): Fix `RegExp` constructor with `string|RegExp` and `flags` (#30586)
fix(lib): Fix `RegExp` constructor with `string|RegExp` and `flags` (#30586)


minestarks/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,microsoft/TypeScript,minestarks/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,nojvek/TypeScript