I’m stuck in between choosing roles and having a hard time in figuring out where should I specialized
Long story short what other roles can I pursue besides web development
I'd generally follow your interests, work on things you're curious about, the rest will work itself out.
I'm 10 years in and have yet to specialize. I would say specialize I'm whatever is interesting that you think has a future. There's web, backend/services, data engineering, ML/AI, and security to name a few.