If you're working on a collaborative project, it's best to add the settings to the project folder so this fixes the issue for everyone.
.vscode/settings.json
{ "files.associations": { "*.css": "tailwindcss" } }