Jeremiah is more anthology than book. It ends with a series of prophesies about surrounding nations that don’t necessarily flow to or from anything,
Here Egypt’s judgement.
I’m struck that the God of Israel, who we now think of as god of all, is already talking like that. He knows Egypt, he has plans for Egypt, but like Israel Egypt will be judged.
Interestingly he doesn’t link it to them worshipping other Gods as he does Israel’s punishment. Because Israel is chosen, it means God has revealed himself to them more, and more is expected of them.
Egypt’s misplaced trust is expressed more in terms of trust in pharoah.
The battle of defeat by Babylon is vividly described, we’re cinematically taken into the minutiae, which gives you a sense of empathy for them and also the futility of men’s strength.
Babylon is compared to the Nile flooding and drowning the land. It’s both a great image of irresistible strength, and implying it is an act of God.
Egypt will come through. The is a promise that they will continue inhabit their land.