The poster tibial nerve goes along the inside of your ankle. When it is compressed or squeezed, you have tarsal tunnel syndrome. 

Your doctor can test the nerve to confirm the diagnosis. To treat it, wear supportive shoes, rest your ankle, wear a brace, and take anti-inflammatory medication.

If the non-surgical treatments don't work, your doctor can discuss surgical options.