Could be really tight hip flexors that are hurting? You could try a form roller to roll yourself out after riding. There are many YouTubes from cyclists on using a form roller. The one from Julie Elliot is my favorite for using the roller. Using it on your hip flexors is a bit controversial, but I’ve found it very helpful after hard rides.