I had no idea Apple supports third-party apps that can filter messages.
But it doesn’t come with a block list, so you have to construct your own.
https://apps.apple.com/us/app/bouncer-text-messages-blocker/...
Every several days I'll scroll through in case something was mistakenly flagged, and it never is.