actually this option is available since android 9 in aosp dialer LINK
but i don’t why, almost none today people put that code, to the point i believe a conspiracy theory that this feature is disable as per telemarketing company request
now it’s not about telemarketers anymore, scammers is doing spam calls/text that can actually harm people
3rd party apps is usually unreliable, broken at os upgrade, and a privacy risk
please consider adding it to all the device baked into the system
Regain your privacy! Adopt /e/ the unGoogled mobile OS and online services