"will beat the Assyrians with a whip." God will not really use a whip. This refers to God's power to punish the Assyrians severely. AT: "will punish the Assyrians severely as if with a whip" (See: [[rc://en/ta/man/translate/figs-metaphor]])
This speaks of God rescuing the people from the Assyrians as if they were the Egyptian army. This refers to when God caused the water of the Red Sea to split so the people of Israel could escape from the Egyptian army and so that the Egyptian army would drown in it. AT: "He will help you escape from the army of Assyria as he helped your ancestors escape the army of Egypt" (See: [[rc://en/ta/man/translate/figs-metaphor]])