Structure-based mechanism of riboregulation of the metabolic enzyme SHMT1.