Spaces and special characters cause ID's to be marked as text

Bug Report

tokens with spaces or ' in them are identified as text rather than valid IDs (the text changes color)

How to reproduce

inorganic_stone_gem
[OBJECT:INORGANIC]

[INORGANIC:LAPIS LAZULI]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[MATERIAL_VALUE:2][DISPLAY_COLOR:1:7:1][TILE:169][IS_GEM:lapis lazuli:STP:OVERWRITE_SOLID]

[INORGANIC:CAT'S EYE]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[MATERIAL_VALUE:20][DISPLAY_COLOR:7:7:1][TILE:171][IS_GEM:cat's eye:STP:OVERWRITE_SOLID]

descriptor_color_yourcolor
[OBJECT:DESCRIPTOR_COLOR]

[COLOR:LAPIS LAZULI]
[NAME:lapis lazuli][RGB:0:0:255]
[COLOR:CAT'S EYE]
[NAME:cat's eye][RGB:255:255:255]

creature_yourcreature
[OBJECT:CREATURE]

[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
	[TL_COLOR_MODIFIER:LAPIS LAZULI:1CAT'S EYE:1]
		[TLCM_NOUN:eyes:PLURAL]

How often does this bug happen?: Always

Result

23

Expected

should be treated just like other tags that are all one capitalized text string note that the INORGANIC:LAPIS LAZULI is part of the official RAWs, and the COLOR versions that I made were confirmed to work in testing arena

Additional information

folder does not exist

Version

unable to check currently, visual studio marketplace refuses to load

Edited by Ralph Bisschops