Scam Detection lives inside Messages' Spam Protection setting, on by default for conversations with people who aren't in your contacts (Google). That toggle controls the standard, on-device version.