I left my old job shortly before DS (nearly 4) was born. I did some training whilst on maternity/during lockdown to prepare to switch careers and I've never been happier at work.
I'm not as well paid as previously, but the company I work for offers opportunities for progression, as well as upskilling and I find most of my colleagues to be a genuinely nice bunch of people.
I'm 75% home-based, too, which I love because it means more time to spend with DS and less guilt, which was something I struggled with when I returned to work.
It did, however, take me nearly a year to get to this point. Initially, I felt a sense of imposter syndrome and that I'd been out of the loop for so long that I didn't really have anything to offer. Sometimes it is underestimated just how difficult moving jobs can be and how long that transition takes in order to feel a little more natural.
We put a lot of pressure on ourselves to adapt and adjust, op, and often it takes much longer than we'd anticipated. My advice is, if it isn't a damaging and toxic environment you're in, give it some more time.