The powdered metal is usually loaded separate from the flaks powder in firecrackers. However, in the large shells made for fireworks displays- the aerial explosions, the powder and the metallic colors are mixed.
You don't ever use flash powder, or even 4Fg priming powder inside the gun. Its used in Flintlocks for ignition only, by placing it outside the barrel in the flashpan. So, even if you had some metallic components in flashpowder, it would not harm the gun. It might start a fire in clothing, or grass, but it should not harm the gun. ( The only time 4Fg powder is ever used is when helping to remove a ball that has been loaded down the barrel with no powder behind it . Then you push a few grains of powder through the touch hole, or in the flash channel, under the nipple of a percussion gun, and use that small charge to push the ball out the barrel.