Right...I get this in my left foot, particularly when texting on my phone (Google "Task-related dystonia"; I know, it's weird how screwed up our bodies can become).
In my case, it's a contraction of my upper thigh and calf that causes me to raise my left leg exactly like a dog would raise it's injured hind leg; "carrying" it with its paw barely on the floor. If I persist in the task or try to walk normally, it will cause my foot to cramp and toes to curl under and is hellish painful.
I have found only one thing that helps. First, take a break from the task (kind of difficult when I want to let you guys know about this problem, but hey).
Then (holding on to something to keep my balance, I kick out my left foot...like I'm dancing to Sinatra's "New York", or doing a Lineker-style toe-poke poaching shot.
If I do this a few times, the sensation passes. The looser I can make my leg the better...and if the rest of my muscles are feeling strong enough to balance, I may even introduce the other leg and go all out as if I'm skip-bopping to the Police's "Every Little Thing She Does Is Magic" (picture related).
https://getyarn.io/yarn-clip/4cbe0a81-cb2b-4c21...
Stretching helps. I mean a LOT of stretching.
Wow. I have had "bad feet" since childhood and dystonia off and on since my diagnosis in 2019. My toes are misshapen on both feet but with the right shoe it's manageable. Hang in there guy's.
I can’t say I envy you. 2 of my sisters have had similar surgeries; one was already retired, the other, a nurse in a huge hospital, had no choice but to retire. You convince me that I’m quite fortunate; all my toes are dislocated from spasms but I have little pain and very good shoes. I wish you well .
I typed this then watched a documentary on Nickelback...to find their drummer has "task specific focussed dystonia". Wow. Compared to him I lost NOTHING.