"Learning lessons" isn't really a thing in UK politics if you look at the general trajectory of the past century. If you like the idea of living in the UK but want to avoid the actual UK, might I suggest Ireland or the Netherlands?
My partner is Dutch. I'm not. My own Dutch citizenship was approved last week.