absolutely wrong approach. fix this at the carrier level and not client device level.
Most of the time when a spam number calls me, I can find it through spam reports on 3rd party websites by googling it.
Oh, you mean that you can identify the Caller ID number which the spammer chose to spoof at you?
But spoofing is also something that should be fixed. I know it's difficult because of VoIP and backwards-compatibility, but it's not impossible either.
Not government, but, forwarding spam texts to 7726 (SPAM) works for various carriers.
This is not about stopping fraud, this is about preventing "grey routes" that do arbitrage around tariffs and bypass carriers' outdated business model.