How long has it been
If the surgery has been recent, then you need to give it time.
If the surgery has been a while ago, then there is chance it will not resolve. Unfortunately with surgery around the nerves and spine, this is a complication that can occur. You can get into a brace for the ankle which can help with walking.