web dev is definitely still worth it but dont waste time trying to become some full stack react guru. since you already know python, just look into fastapi or flask paired with htmx. htmx is a cheat code for python devs who dont want to deal with modern javascript bloat.
the real money is in building fast MVPs, automation dashboards, and custom landers. AI is cool for generating a quick CSS layout or a basic script, but it still struggles to piece together a fully functioning system that actually converts traffic or handles APIs securely. if you dont know the basics of how the browser talks to your server, you will spend days debugging AI garbage. learn enough to build and ship your own tools, thats where the leverage is.