If I wanted to learn more back end I would just learn more about PostgreSQL features. It seems like a solid long term investment. You can bet on it even if the Rails vs. Node vs… thing is uncertain.
There is a lot of innovation running atop of it too: Suprabase and things like that for example (which are more funky things that can be learnt as needed)