Formaldehyde as a densitometer and thermometer in Cygnus-X, the GLOSTAR pilot region, and M8 | Synapse