Irreversible damage to the hair follicles can occur in conditions such as scarring alopecias, which can be caused by immune reactions, infections, or trauma. The diagnosis of scarring alopecias typically requires a biopsy to confirm the condition. Hair restoration procedures can only be considered once the disease stabilizes, as these conditions involve permanent damage to the hair follicles.