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

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