Do you have extremely flexible joints?
I'm asking because I have hypermobility syndrome (one of several syndromes that can cause joint hypermobility, the others being things like Marfan's and Ehlers Danlos). Which means that all of my joints are "double jointed". Or most of them are anyway. And what that has meant for me is that my ankles can become incredibly sore when I walk on them. Fortunately (in a way) I use a wheelchair so I don't have to stand on them so much, but when I did walk on them I found that I needed ankle braces to make it even slightly tolerable after awhile. Being double-jointed also makes you at more risk for dislocations, subluxations (partial dislocations), sprains, and a bunch of other stuff, even sometimes from ordinary things (I once permanently damaged a finger reaching for a book, it sprained and now it is permanently bent in the wrong place).
I've heard hypermobility (super-bendy joints) is more common in autistic people, but I don't know if it's true or not. Some studies seem to say so but I'm cautious about such things. So if you do have any "double jointed" joints then that's a potential cause of painful ankle problems right there and you should be seen by someone with expertise in the area. (And if you have both double-jointed joints and super-stretchy skin, then you should really get checked out medically.)
This may be totally off base. I don't know if you injured yourself or something you're not saying. But it sprang to mind so I thought I should tell you about it because I wasn't diagnosed until I had all kinds of joint problems as an adult and someone finally tested me.
_________________
"In my world it's a place of patterns and feel. In my world it's a haven for what is real. It's my world, nobody can steal it, but people like me, we live in the shadows." -Donna Williams