Text this: Noncontractible loop states from a partially flat band in a photonic borophene lattice