hello and thanks for the query,
well considering the history and the symptoms that you have described I would think in lines of nerve compression as your doctor has already suggested, it could be carpal and tarsal tunnel syndrome
so I would advise you to consult a neurologist
and get a nerve conduction study
done immediately and depending on the results your doctor would suggest appropriate treatment which may be either medication or a surgery to relieve the nerve compression. take care.