“sword.” In this case the “sword” refers in large part to the sword of robbers who lurk in the wilderness and desert regions, but it also has the wider meaning of other dangers, such as getting lost in the desert and dying.
“wilderness.” This is hard to translate into English because we don’t have an equivalent word. It refers to an place that cannot be, or easily be cultivated, and thus wilderness, desert, remote place, uninhabited place, etc. Sometimes these areas were very small, perhaps just a few acres, just very rocky or barren, but sometimes they would be the great deserts. The places to which the Jews were deported had uninhabited places that were dangerous.