Here is list of top indebted countries of the world.
Almost all big economic powers like USA, Japan, China are prominent in this list.
If whole world is under debt then who is the lender 

Source: VGraphs Facebook Page
The United States of America is in debt to me and my wife.
In fact any US citizen can buy an I bond and the US gov will be in debt to them.
My wife and I plan to increase the USA’s debt to us every year for the next five years.
Basically, the world is in global mode where countries are indebted to each other. See
Major Foreign Holders Of Treasury Securities from Department of the Treasury/Federal Reserve Board
August 15, 2022. Not just you and your wife, as well as other Americans but many US allies like Japan, UK, France,... and even China, brought US bonds.
source:
https://ticdata.treasury.gov/Publish/mfh.txt