An interaction I had tonight. I wish people were more kind and empathetic

So I was walking to pick up an order where a lady and her 2 kids were walking a medium sized dog. I am very scared of dogs as I was nearly attacked and corned by a pitbull and a chihuahua a few years ago while on a run. The kids were taking turns walking the dog, and the kid runs with the dog and got very close behind me, so my visceral reaction was to run and say “hey, you scared me there”. I didn’t say it super loud to make a scene. And I just kept walking. I politely explained that I am scared of dogs when the mom asked why I moved away fast. Also, I am autistic, so sudden movements like that can startle me. The mom told me I was being extra, and the kid asked why I acted like that. I wish people were more considerate of others in public. That interaction left me very humiliated.