But - I don’t regret the PhD. I learnt a lot of skills, learnt from other PhD students and postdocs.
I will say, make sure your supervisor is a nice person who does not place their career above all else. I was lucky with that, and I think finding such a person in academic is increasingly difficult. Never do a PhD with a supervisor you are unsure about.
Finish the PhD in 3 years (U.K.) and get the hell out. There is nothing left in academia for people who genuinely want to improve the world.
If your goal is getting paid a reasonable amount for a bit of a silly job, and you can tolerate or enjoy politics and game playing, that’s fine, stay. Hours are flexible, you can get away with not doing anything much at all for your career, and the pensions in the U.K. are still very generous. Over the summers most people don’t actually do any work.