The word "them" refers to the people of Judah, not to the four groups listed in the previous verse. Yahweh is going to use the Gentile nations to punish Judah. This would have been very offensive to the Jews. They would have also been surprised to learn that Yahweh was using the Gentile nations.