src/vs/base/browser/formattedTextRenderer.ts/isFormatTag
function isFormatTag(char: string, supportCodeSegments: boolean): boolean {
	return formatTagType(char, supportCodeSegments) !== FormatType.Invalid;
}