Then when he says, "Alexander," he mentions those who had been with him and those who are with him: first, on the part of the men; second, on God's part, at "but the Lord stood by me and strengthened me." In regard to the first he does two things: first, he informs him about a person who harmed him; second, about the negligence of those who failed to help him, at "at my first answer, no man stood with me." In regard to the first he does three things: first, he proclaims the guilt of those who accused him wrongfully; second, he shows what their future punishment will be: "the Lord will reward h...im according to his works"; third, he shows how he will be punished also by the Church: "whom do you also avoid."
It seems that this Alexander was a worker in brass or a watchman for a coppersmith, and probably was one of those who believed that the observances of the law had to be followed in order to be saved: "some have made a shipwreck concerning the faith, of whom is Hymeneus and Alexander" (1 Tim 1:19). Some even say that he was the one mentioned in Acts for inciting the people against the Apostle (Acts 19:24); but the names are different, because in Acts the person was Demetrius, and here Alexander. Again, the places were different, because the one occurred in Ephesus and this one at Rome.
And he continues, "he has shown me much evil." And note that he does not say "done" but "shown": because the wicked can show their ill will toward the just, but they cannot always accomplish it: "they shall fight against you and shall not prevail, for I am with you" (Jer 1:19); "who brings to naught the designs of the malignant, so that their hands cannot accomplish what they had begun; who catches the wise in their craftiness, and disappoints the counsel of the wicked" (Job 5:12).
Then when he says, "the Lord will reward him according to his works," he mentions his future punishment. But note that he does not use the optative, "may he reward," but "he will reward," to signify that his punishment has already been prepared by the Lord, which the Apostle foresaw from his obstinacy: "you will render to each one according to his works" (Ps 61:12). Yet, although his punishment is being reserved for the future, the Church should even now punish him by excommunication.
Source: Commentary on 2 Timothy