Sounds like nerve
The nerves that supply the feet stem from nerve branches traveling from the leg. The "pinch" could be from the back at its root, but it an also be locally due to musculature. Another thing to be checked is circulation because if blood flow is hampered to a an area, it can cause pain and reduce function in the nerves. Get checked properly.