Or,
and the Devil, who is leading them astray, was cast into the lake of fire and brimstone, where are the beast and the false prophet, and they shall be tormented day and night -- to the ages of the ages. Rev.20:10 Youngs Literal Translation.
Meaning, when Satan is judged before our Savior,
Just as the beast, false prophet are judged, because Satan really has no preeminence above a man. And at that time, the suffering for is from having their existence exposed. "Ages and ages" refers to the history of the world from beginning to end, not past that.