Text this: Dipole-dipole interactions mediated by a photonic flat band