Landlord harassment now wanting to return deposit

It’s up to 3x the deposit, depending on the severity of the breach.

How can that be fair when the deposit has been returned ?

The penalty is for breaching the regulations, not for keeping the deposit. However, I do agree that the deposit legislation is cumbersome, bureaucratic and often unfair to landlords.