Formic acid (methanoic acid, HCOOH) is the primary irritant in ant venom, particularly in fire ant stings. It causes the characteristic burning sensation and is named from the Latin word 'formica' meaning ant. The other options (tomatoes, tamarind) contain other organic acids but not formic acid.