VS Code is going to require a newer version of glibc than Ubuntu 18.04 comes with. One does not simply upgrade glibc.
One might have an application-private newer build of glibc and set LD_LIBRARY_PATH to the directory containing it prior to launching VS Code.
It’s not new today, but it post-dates “AI” and hit the same problem then.