The simplest way to export OSM path to GPX file is to use overpass-trubo page.
Btw, in OSM terms, path are represented as Way structures, a simple list of node coordinates.
Open OSM, use search to navigate to the path (way) you want. For example, i used this one: https://www.openstreetmap.org/way/762977045
The open https://overpass-turbo.eu/. In the left part of the screen you’ll need to type following query, using the way ID form OSM page:
way(762977045);
out geom;
Click Run and then Export → download/copy as GPX
I have read couple of threads about this topic and I find it strange as none of them will provide such a clear an easy example. I guess many people will need to export some paths form OSM into GPX, and I hope this answer will help them