src/vs/workbench/api/common/extHostLanguageFeatures.ts/ExtHostLanguageFeatures/_serializeRegExp
class ExtHostLanguageFeatures:	private static _serializeRegExp(regExp: RegExp): extHostProtocol.IRegExpDto {
		return {
			pattern: regExp.source,
			flags: regExpFlags(regExp),
		};
	}