How to proceed when pedestrians occupy the dedicated bike path?
Whatever you do, don't be a jerk.  Noone likes a cyclist who reinforces the bad stereotypes.
Do Share The Road  Even though you're in the right, there's no need to be offensive.
Personally I find bells lazy, most cyclists have a good loud voice and a &quot;Hi there, just gonna pass on your left&quot; is far nicer than &quot;ringring&quot;
Absolutely never try to scare someone with speed or proximity.  Think how bad you'd look if it went wrong and you couldn't stop or swerve in time.  You would be at fault even though they were in the wrong.
Conversation and lecturing has no effect, and is more likely to make people defensive and negative toward you and all cyclists.  A rhetorical question like &quot;Where's your bike?&quot; is about as much as you could say safely, and even that much might get you into a physical altercation.
My solution is to anticipate the up-coming blockage, look behind over the shoulder at driver of oncoming traffic, speed up and take the road lane.   Give the obstruction a wide berth.   Making eye contact with the following driver helps them anticipate your action.  The driver can see exactly what you can see and won't get mad because you telegraphed the intent by looking.
Of course this assumes you can ride fast enough to &quot;merge&quot; with the traffic for a moment.