Who honestly didn't see this outcome?
China splashes money at developing countries they have little or no ability to repay.
The money is spent contracting Chinese construction companies to build infrastructure projects of dubious relevance and value.
So, China loans the money, which returns to China via Chinese construction companies and the countries are left holding the bill.
I doubt the CCP ever actually expected to be paid back but will hold the outstanding loans over the country's heads as leverage.
I also expect that some of the countries involved never had any intention of paying back the loans and are playing the CCP for idiots. Once things get worse internationally they will nationalise the projects and tell China to go fuck themselves with the west's tacit support and backing.