I think @Miss Lydia is better with leg issues
I would check to see if the tendon slipped
Run your finger down both legs at the back
See if one feels different
With sprains or twists usually they will still use the leg with weight off it
That’s why I’m thinking slipped tendon