Why isn't CO2 flammable?
If I understand what you are saying, then the issue is that the carbon and oxygen have already reacted. Carbon dioxide is thus not flammable because it is the fully oxidized product of the combustion between oxygen and carbon.

"Made of" has multiple meanings. You're confusing the meaning of physical mixture (flammable) with the chemical composition of a compound (not flammable).