To clarify your statement about Wayland, it doesn't support remote desktop access in itself [1]. A remote desktop server would sit on top of Wayland.
[1] https://wayland.freedesktop.org/faq.html#heading_toc_j_8
[1] https://wayland.freedesktop.org/faq.html#heading_toc_j_8
Wayland, Pipewire, and H.265 will be a much better general solution to remote desktop access. In the meantime, VSCode via browser is a MUCH better approach than trying to forward it over X over any but the fastest network links.