In 1966 I was hit by a car while on a motorcycle and almost lost my left leg...was in a cast for six months, with the foot, ankle and shin the last parts to be freed. Took months for that ankle to work well, and it never has quite fully regained full flex, although it's within a few degrees of it.
Hope your ankle movement returns much more quickly!!