There is an app called ScreenZen that was immediately effective in breaking my habit. It made me use social media much more consciously.
My go-to "social media" page has been GoodReads for a while, and I don't see a problem with it – not only because it is rewarding reading books, but because it doesn't have dark distraction patterns and is much more like the mid 2000s internet. Half my family is doing the reading challenges now.
It’s reasonable to want to keep up to date with some things. X is just not the best platform for that.