Changing jobs every few years to get a bit further up the career ladder and gain much broader experience can be a real game changer. I changed jobs every 3-5 years, mostly to different employers, doing either different work or more senior same work, but always within accountancy, sometimes just moving from one dept to another within the same firm.
Sometimes when I moved to a new firm, I was working alongside people who'd been there since leaving school/uni who thought they "knew it all", but really they'd just been doing the same thing repeatedly for years/decades and had no breadth of knowledge/experience. Most were "silo'd" and couldn't do associated work which they had to pass over to others in other departments, who likewise had been there years doing the same limited work. I tended to do the "whole job", start to finish, and didn't pass work over to other depts as it was all within my skillset/experience. I trod on a few toes doing that, but overall it was more efficient. I also wasn't afraid of changing/shaking things up, with changing long established inefficient systems, etc.
After 20 years, I gave up my job, set up my own business and never looked back, which I've been doing for the past 20 years and now I'm downsizing toward retirement. I still know some of the people I used to work with and they're still doing the same job they did when they left school 40 years ago, still whining that they didn't get promotions, didn't get pay rises, etc. - some of those were every bit as intelligent/qualified as me, some better, but they just preferred their "comfortable" work life rather than taking risks and pushing themselves. Others I worked with pressed on, moved around, and got promotions, some started their own businesses, and did far better.
Sometimes you have to take that "leap of faith" if you want to get on.