Peeling skin is definitely a sign that your body is trying to repair itself after a sunburn, and even so-called “mild” burns can cause long-term effects like premature aging or increased cancer risk. I recently read a very thorough article that explains how sunburn develops on a cellular level and what it really does to your skin. It’s here:
https://gentaur.co.uk/learning/sunburn-how-to-play-safely-in-the-sun/ . It also shares tips on what to do after sun exposure and how to reduce inflammation. I found it both informative and a bit of a wake-up call.