Hi,
welcome to Openstreetmap! If you decide to map sidewalks separately, like here: https://www.osm.org/way/1148513999, then it's good practice make sure to tag the carriageway with sidewalk=separate + foot=use_sidepath

Happy mapping!