There is a kind of seed that birds love and squirrels hate. It is safflower seed, if you can find it. I have watched squirrels come to the feeder, get a seed and then spit it out. They don’t come back.
Cardinals like it....but it is sooooooooooooooo expensive. I can barely afford sunflower seed these days.
Bkmrk.