In fiqh, the Islamic jurisprudence, there's no clear evidence against treating irritation caused by ingrown hairs. Muslim men and women are encouraged to maintain cleanliness and health. Therefore, if the treatment of ingrown hairs (including removal) alleviates discomfort, it could be seen as permissible.