@dausman23 You don’t have to do barbell squats. You should not do something that causes pain. Soreness in muscles is fine. And if it’s a flexibility issue, it’s worth addressing.
But there are lots of squat variations that will accomplish a lot of the same work as a barbell squat. Hack squat...