Visual Studio Code offers a wizard to set up Java. It detects there's no JDK and prompts to download one. This means invoking the browser to download a .tar.gz and... that's it, 0 indication of what to do with the download.
Pop!_OS, in the latest supported version 22.04 has a valid OpenJDK 21 package that could be easily installed instead.