As a software engineer, no, there's no reason to be worried. But what if you were a wordpress developer where a big chunk of your work can be automated?
Do you seriously think WP is just about blogs? I'd say majority of WP sites are now ecommerce, the amount of different plugins interacting based on local markets needs with custom tweaks, integrations to local courier APIs, payment systems and the general fudginess of the codebase I'll be very surprised if this can be automated. Your general FAANG proto pusher SWE will be the first to go.
Majority of WP sites are definitely not e-commerce. There are about 160M active domains and WP is estimated to run on 40% of the web. That's a whooping 60M+ web sites. I doubt more than 10M of them are e-commerce ones.
Honestly if you're letting yourself sink that deeply into a niche, and neglecting broader programming skills such that you're unemployable outside it, you have no one else to blame when that comes back to bite you.