It's patently absurd that iOS and Android don't have robust filtering options built into their standard messaging apps.
I personally use Signal for my SMS messages, maybe that's filtering messages for me. Pretty neat to be able to use an alternative messenger as the system messenger app to be honest, since I'm going to install Signal on my phone anyway!