Yeah, about 15 years ago when there were companies planning to replace barcodes with RFID tags on all products, a big selling point was that washing machines could detect red socks in a white wash.
Someone did make such a washing machine, from 2012: https://www.appliancesonline.com.au/academy/appliance-news/s...
Note the caption: "The washing machine's brains do the thinking for us".