Welcome at HCM.
I have read your complete question.If this back pain
is not present since last longer time & is of recent origin then this looks to be due to tightness of your hamstring
muscles.This muscle is present at the back of thigh.
You should not worry about this.Taking bed rest
like avil/aleeve & doing warm fomentation over back will relive this spasm associated pain.
With best wishes.