When I open a folder using vscode in KDE, I cannot find the remote location

Avahi daemon is required for service discovery - an is not default enabled.

systemctl enable --now avahi-daemon

More troubleshooting can be found in [root tip] [How To] Basic Samba Setup and Troubleshooting

You automate/simplify mount using GVFS and gio mount scripting also describe in above guide.