src/vs/editor/common/languages/supports/richEditBrackets.ts/createBracketOrRegExp
function createBracketOrRegExp(pieces: string[]): RegExp {
	const regexStr = `(${pieces.map(prepareBracketForRegExp).join(')|(')})`;
	return strings.createRegExp(regexStr, true);
}