I almost never regret time spent reading a book. But I frequently regret time spent on Reddit/Youtube/Twitter, even if I enjoyed the content at the time.
I'm more likely these days (as the decades pile up) to deliberately stop reading a book, if it hasn't engaged me by the time I've read 20% of it. Of course, many never get started, once I do a quick scan.
I estimated how many more books I would likely read before I die, and it's a shockingly small number, even though I read a lot! So - choose wisely.