I start with analysis of current and past environs. What you're experiencing is discord between who you want to be and how you've been trained to be in the past. Misogynistic jokes were funny before we deconstructed what they're implying or outright stating - because we were taught that they're funny by countless movies, TV shows, tropes, memes, and conversations. It is only upon inspection that we reconsider our response.
Find the gap - where's the difference between who you want to be and how you were trained to be? Are you genuinely amused at the misogynistic humor after you break it down further? Is the misogynist humor helping you in some way? For example, is it something you use to camouflage into social situations where you're otherwise an outsider? (Sociopolitical right audience, predominantly male audience, etc) What purpose was that joke serving in that moment? Now that you've thought about it, is it still true for you?
If so, make peace with the dynamic environment you were in where it made sense to use that humor. Understanding the why will help you feel less uneasy. If it's no longer true for you, maybe it's time to let your grip on misogyny slip a little - or a lot.