An alternate solution to make VS Code stop complaining about your CSS selectors like this is to search the settings for "css auto validation" and set it to "never".