"Software dev" encompasses a wide variety of work. As a simplified example, if you were a senior frontend JS dev who wanted to get into writing kernel modules, you might have to take a job title and/or pay cut since you're less senior in that niche than your current one. But if you really want to be a kernel dev, it might be worthwhile.
So, what do you want to do? What kind of dev do you want to be? Will the new gig get you closer to that, regardless of title? Thinking beyond just tech stack to how you want this arc of your career to progress, will new job be better?
Also look at non-tech stack things. Do you like your team? Do you like your industry? Has your boss treated you well? Do you have equity opportunities at current or new gig? Which stack/niche has a higher ceiling of potential opportunity?