I am knitting my second pair of socks and I am about to start picking up stitches to do the gusset but before I do that I need to figure out the problem I ran into on my first pair. I after I picked up my stitches I noticed when I did a knit stitch that the purl side was towards me and not facing the inside. So I am trying to figure out what I did wrong, any ideas? The only thing I could find on Google was that the work might’ve been turned inside out but the heel turn & flap are both the right way

Welcome to KH!
What is the name of the sock pattern that you’re using?
Are you picking up sts with the outside of the sock facing you? This video shows picking up sts. Whether you use the same technique or not the orientation of the sock and heel is the way to work it. See 5:00min into the video.