For areas like this, an alternative is to map the area as area:highway=footway together with a linear highway=footway through the centre. Although pedestrian areas are rendered on the "default" OSM Carto map tiles, they're really intended for areas where routing should be omnidirectional rather than linear (although it doesn't actually work with many routers). Although area:highway=footway isn't rendered by OSM Carto, it is by some 3D renderers.

If you add a footway for a pavement, you'd need to add footway=sidewalk to it and sidewalk:*=separate to the parent road.

https://wiki.openstreetmap.org/wiki/Tag:area:highway%3Dfootway
https://wiki.openstreetmap.org/wiki/Tag:highway%3Dpedestrian#How_to_map
https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer