Hello,
Rehabbing a hamstring strain involves gradual hamstring strengthening as well as correcting any biomechanical factors involved that contribute to the injury. You will certainly use your hamstrings at a high level, as well as your glutes, when you run at faster paces. They both need to be strong.
It is important to adjust your paces and efforts to the hamstrings threshold. Done right this can help you regain and build strength and fitness, but be careful not to overdo it.
I would suggest one of our Strength Programs as it contains progressive hamstring strengthening and glute strength. Done twice a week you will see noticeable benefits in ~2 months.
Hope this helps!