This is literally how it works in other parts of the world - do you guys just have to trust that your landlord isn’t going to decide that they’d rather just keep your money at the end of the lease?
In NZ, the landlord is required to lodge the bond with a government agency, and in cases where there is a dispute a special court will adjudicate and issue binding orders as to how the money is to be divided.