maps2gpx

Paste a Google Maps share / directions link and get the route geometry as a GPX track. Only the route highlighted in your original link is exported, exactly as selected.

Example: https://maps.app.goo.gl/ACLPedm3Zn6qBfoK9