The wiki says that all highway= elements (roads, pavements etc) have name=  tags.

I am not aware of a wiki that says names can only be applied where highway=road / motorway.

My practice of many years is having route lists that are usable for all.

And you will note, by and large, I name pavements etc that are named in a route.

In this case Via Francigena.

Come mid September 2023 my intentions are to walk through Pontarlier using that route.