Is it hamstring, or could your problem be related to piriformis or sciatic nerve?

I would suggest a thorough assessment to truly establish what is going on and hopefully the correct path to correcting your pain.

Good Luck

Gaz