The chemical reactions and pathways resulting in the formation of flavonoid phytoalexins, a group of water-soluble phenolic derivatives containing a flavan skeleton, which possess antibiotic activity and are produced by plant tissues in response to infection.