What’s interesting is that during the heyday of pirates in the 1600 & 1700s, they actually flew a blood red flag just before attacking. The skull and crossbones “Jolly Roger” came later.
“Use of the term Jolly Roger in reference to pirate flags goes back to at least Charles Johnson’s A General History of the Pyrates, published in Britain in 1724.[1]”
-Wikipedia