With https://github.com/Textualize/textual/pull/3169, Textual now supports strings as property values and highlighting should work for that.