Got a fix for lsp-mode merged:
https://github.com/emacs-lsp/lsp-mode/pull/3929

This bit me in the form of vanilla-extract (https://vanilla-extract.style/) *.css.ts files being misidentified as CSS

#lspmode #emacs

fix: Only detect CSS when .css is final extension by amake · Pull Request #3929 · emacs-lsp/lsp-mode

Prevents misidentifying e.g. *.css.ts, which is a convention used by for instance vanilla-extract.

GitHub