This claim is true, when I began to look up this claim, article "Do Dogs See Color" by Ryan Llera and Lynn Buzhardt state that dogs "can only discern blue and yellow."
Llera and Buzhardt describe it as a "limited color perception ... called dichromatic vision." The reason behind this is because human eyes have "three types of cones that can identify combinations of red, blue, and green. Dogs posses only two types of cones." Which is why they're only able to see and process only a few colors (blue and yellow).
Llera, R., & Buzhardt, L. (n.d.). Do dogs see color?: VCA Animal Hospital. VCA. Retrieved March 5, 2023, from https://vcahospitals.com/know-your-pet/do-dogs-see-color