I use something similar but I confuse the syntax highlighting/coloring feature of VSC.
My idea is to start every item with his type to have an overview in my rule how to use it.
String stText for Strings
Number nuValue for Numbers
Group gnuAllItems for groups with number items
...
But it looks like the first lower character confuses VSC and does not color the item in the right way. If I use a upper case as first character it is working.
This leads me to the question:
What is the implemented syntax coloring trigger of items, things, groups, … in VSC OH extention?
It looks like rule language code words like Item, switch, case, are working right.