I used to run into this type of problem frequently. I've found that personally adopting something like https://conventionalcomments.org really helps with ambiguity.
I think the big reason to put syntax highlighting in the language server is you have more info, ex you can highlight symbols imported from a different file in one color for integers and a different for functions