If you want to become a better programmer, my number one advice is to learn another programming language. The further away from your comfort zone the better.
After a few years, I considered myself a proficient PHP programmer. There was more to learn, but diving deeper into the possibilities and quirks of the language didn't turn me into a better developer.
I wanted to learn another language. I could have picked up C# or Python, but I'd be looking at code from the same angle as PHP. Instead, I decided to experiment with Elixir. Elixir—and the constraints imposed by functional programming—were different enough to unlock another part of my brain.
This doesn't only apply to languages, but frameworks and paradigms too. If you've been using React, try Livewire or HTMX. If you've been using ActiveRecord, try a data mapper. You don't need to end up using it, but you'd be surprised how much you can learn on the other side.