I have the same issue and none of the solutions I've seen rectify it, incluyding clean workspace and restarting. I'm wondering if the spring classes are built with a later Java version that my version (17) can't handle.
I am able to build with maven. And If I click on one of the "not found" classes, vscode actually brings me to the correct class in the dependent lib. But it still infuriatingly insists that the package does not exist.