I've dealt with the same thing on my legs, and what finally helped was realizing I was doing like three things wrong at once. The others here nailed exfoliation and direction, but theres something they glossed over: how tight your clothes are right after removal. If you're wearing snug underwear, leggings, or fitted shorts immediately after shaving or epilating, you're basically forcing hairs back into the skin before they even have a chance. I started waiting a few hours in loose clothing and that alone cut my ingrown rate in half.
So here's what actually works together: exfoliate 2-3 times weekly like they said, but use something gentle - rough scrubs can actually irritate skin and make ingrowns worse, not better. Shave with the grain rather than against it; yeah, it's less close, but the hair doesn't curl back as aggressively. When you epilate, go slower and don't stretch the skin too hard - that can trap shorter hairs. Apply a chemical exfoliant (salicylic or glycolic acid) right after removal, which helps keep pores clear, but then give your skin time to calm down before anything irritating touches it again.
One question though: are the ingrown hairs showing up more in one area than another, like your underarms versus legs? And when you epilate, are you pulling the skin tight while doing it? That detail matters because underarms are finicky with ingrowns - the skin's thinner and hair grows in weird directions, so sometimes a different removal method entirely works better than trying to perfect the technique.