After checking closer it seems like the sidewalk here is defined as a separate path of type sidewalk.

I am new to OSM editing but based on what I read here (https://wiki.openstreetmap.org/wiki/Key:sidewalk#:~:text=To%20provide%20information%20about%20sidewalks,way%20is%20drawn%20in%20OpenStreetMap.) this is correct. I just have to specify in the highway next to it that the sidewalk to the left/right is captured separately.