Hi Robert, welcome to Devtalk!
It sounds as though you are experiencing the AI effect, which many people think will hit dev jobs hard, first. There’s actually been quite a few AI related threads that you might find interesting: devtalk.com/ai (some companies already saying they’ve stopped hiring because of AI).
It’s almost certainly going to be an industry wide issue - but it will probably impact some languages or fields more than others and perhaps all equally at various points in time.
You might actually find becoming more expert in your current stack may be more beneficial, or widening your skills while remaining in the same space (for instance since you know Rails, what about looking into something like Hotwire Native? (You can win a copy of the book here)).
If you do want to explore other languages, Elixir and Phoenix may be worth a look - both inspired by Ruby and Rails and built for scalability.
I’d definitely look through the AI threads though.. quite a few articles and comments offering thoughts and advice.
Whatever you decide good luck and keep us posted! Hopefully others will be able to share their thoughts too