Harnessing fluid-structure interactions to design self-regulating acoustic metamaterials