Vscode 1.56.2 is indeed the current version in ports. It depends on devel/electron12, that is the port still depending on python2.7. Python2.7 is still in ports too, so you should be able to build and install.
Looks like people are still working on electron12, so at some point in time they will probably switch to py3. Py27 will be with us for quite some time for backward compatibility reasons, so I think it is safe to install it.