I've checked r/fitness and the other plethora of resources about this but I get conflicting and hard to comprehend suggestions. I started 5x5 last year which included a lot of squats. I ended up really hurting my hip flexor or (whatever is near my groin) by not stretching at all before lifts and possibly by ego lifting too.

How do you guys stretch before lifting, especially squats, to help prevent injury?