The following lets you connect a Raspberry Pi 5 to a laptop via USB-C cable and have an Ethernet speedy connection via the same cable. One cable for both power and data flow, without hiccups of WiFi, and works perfectly with Visual Studio Code remote SSH.
Tested on 2025-05-29.
NOTE: Currently I cannot get it to work on Windows, for it stubbornly keeps mounting the Raspberry as a COM device.