Does iOS not have spam blocking in the SMS app? It all goes straight to the spam folder in Google Messages, haven't seen a spam SMS in years.
There are 3rd party block list apps, there is an OS setting to trust the filtering of your cell provider, and you can report the sender/content of a message directly to Apple for the first message from a new sender.