“Google has likely trained Gemini to avoid repeating expletives, so it simply is disabled in search when a curse word is present in order to avoid that.”

Swear in a Google search and the AI Overview disappears. This is the feature that told people to put glue on pizza. Google offers no setting to turn it off. Profanity is the opt-out.