@aalfaro5 is already possible in the iOS beta as well. Just open an activity and tap the three dots in the top right corner. There you have “save route” - which will first generate a link that then produces a download of the gpx file.