Red pepper flakes can deter some animals, but they are not a guaranteed solution for squirrels eating bird food.
Why They May Not Work
Different sensitivity: Some squirrels avoid spicy food, while others do not mind it.
Adaptation: Squirrels are intelligent and may eventually tolerate the spiciness or dig through to find unspiced seeds.
More Effective Methods
Squirrel-proof feeders: Cages, weight-activated closures, or baffles prevent access.
Motion-activated sprinklers: Scare squirrels away when they approach.
Mesh cages: Covering feeders blocks squirrel access.
Red pepper flakes may offer limited deterrence, but combining them with other methods is more effective.