It's just VS Code being picky — IntelliSense doesn’t fully parse Tailwind’s @apply inside @layer, especially with arbitrary values like px-[250px].
If it compiles and works in the browser, you're fine. You can ignore the squiggly or switch the file to .pcss to shut it up.