Medial ankle pain of muscular origin

Here is the list of muscles potentially responsible for these pains, a link can be selected for more details on a particular muscle:

Myofascial syndrome of the posterior leg muscles

Post operative chronic pain