For me, I did web development for a few years earlier in my career and then moved on to native mobile and web services work.
I don’t have a particular interest in web and feel there’s myriad complex tooling and endless web frameworks, where React is the more recent hotness. How many different ways do we need to solve a problem, and why weren’t the older ways sufficient isn’t clear to me. The web dev space has almost infinite solutions to problems that don’t exist. But I digress.
I’d encourage you to look at mobile or working in services. There are also data engineering related roles where you can write code (Spark, ETL) and work with folks who build ML models.
My point is - if you want to code, there are many options to explore outside of web development.