I stopped trying to weasel my way to the "right" job/role to get one step closer to my "career goal" or had the right job title, and focused on some self reflection about what I get the biggest kick out of. If you had a good day at the office today, actively try to identify what it was specifically that made your day good (was it a day of code? Bug fixing? Debugging? Meetings? Design work? Etc)
Sounds obvious and simple but I think it took me a decade or so to realise this. Perhaps I could only really come to this conclusion once I had already "proven" myself career-wise and was making enough money to come to the realisation that I could stop trying to climb the career ladder and focus a bit more on what I get a kick out of, and not if the next role was a steppingstone to something else.