You learn the same thing until you really learn it

Have you noticed how you learn a “lesson” the hard way, and then you know what to look out for or what not to do.. but then you do it again? And somehow you do it again and again, learning the same thing again and again, until you accept that trait to be your identity or until a switch goes off and you never do it again.