Imagine you're a foreign country. You've put in a bunch of labor and manpower to make goods for the US. You sell them to the US, and they pay you with green pieces of paper.
Now what? Why are these American dollars valuable to you?
Because you can give them to other countries and they'll give you goods in return? Then why are these American dollars valuable to those other countries?
Because it's turtles all the way down?
I think it's because somewhere along the line. Some country will take those dollars and buy a F35. Or a IP license from Intel. Or the rights to distribute the latest Marvel movie in their country. What do these things have in common? No other country in the world can produce a equally good substitute.
That's the core of what still gives the USD its value. The US being able to produce goods and services that the rest of the world has no substitute for. And because the rest of the world must have USDs to buy American technology and expects this to continue into the future, this allows the US to consume more from the world and have a large consumer market.