The only dog that causes problems when I cycle is my own dog because she has no manners and cuts me up all the time, same problem when I walk or jog with her too though.
She never goes near other cyclists though as I taught her to move over for joggers and cyclists due to the fact I live on the river and it’s a busy towpath near my mooring.
Maybe a big stick is the best tool, to educate poor dog owners that don’t train their dogs properly?