I’ve always thought and heard that like other catfish, plecos breathe air and will take breathes from the top of the tank. Every pleco I’ve ever had had shown this behavior
I’ve only ever seen common plecos (hypostomus) do that this ability let’s them survive some pretty bad water conditions but that’s not the norm. All the OP’s fish are gasping for air…either he did too big of a water change and the parameters changed drastically, the OP put too much dechlorinator, or there’s not enough O2 saturation.
Do a SMALL water change and add some surface agitation or point the outflow of the flex upwards