It is common to have pain in the leg as you described. Usually it happens after prolonged walking. In your case it happens every time you stretch these muscles. I suggest that you get your
vitamin B12 and D3 and
calcium levels tested. Sometimes vitamin deficiency is the cause of the pain.
Next Steps
Visit an orthopaedic doctor nearby if the pain still persists. Go for physiotherapy.
Health Tips
Hot bag at night helps to reduce the pain.