I have created a package to attempt semantic highlighting for SQL. It matches your tables to your aliases.
Here’s the link:
I have listed a few issues in the readme but overall I think it’s ready for use.
Please let me know what you think!