The red square is tKeepout, you can run traces trough that.
If it is tRestrict you used the wrong layer when drawing the footprint.
Keepout gives you an error when overlapping with other keepouts.
Restricts gives you an error when touching copper. It can be used to remove polygon generation from areas.