src/vs/workbench/contrib/preferences/browser/settingsTree.ts/createSettingMatchRegExp
export function createSettingMatchRegExp(pattern: string): RegExp {
	pattern = escapeRegExpCharacters(pattern)
		.replace(/\\\*/g, '.*');

	return new RegExp(`^${pattern}$`, 'i');
}