The Confederate battle flag is an "American" flag in the same sense that the Mexican flag or the Venezuelan flag is and American flag - they are flags of North or South American nations independent (at one time) of the United States of America.

And your notion that "free blacks" fought for the Confederacy is ludicrous. "Though records are spotty.. "