Shared pathways are a nightmare for almost all involved. The vast majority of walkers are directly in the centre of the path. If they are walking with friends, 100% of the time they are spread out across the entire path. Bike has a conundrum. If you bell, they jump and move in an unpredictable direction. If you yell out "passing on left" about 30% of the time they move left. If you don't notify them, you pass quickly and safely but the pedestrian yells at you (even though they were in the middle of the path and if they were on the edge you could have given many feet of space).
I very rarely ride a pure road bike on those paths. I pass more people in the dirt than on the pavement as it's easier and less confrontational. Some still yell at you as they are entitled pricks blocking the whole path with no situational awareness and that is somehow everybody elses fault.