I am sorry for your situation, and will offer my humble opinion and advice.
Very plainly I say this………either you, or your affair partner have to quit, period.
It is not fair to continue to subject your husband to what he is going through right now, I have been where he is, and it is nothing short of absolute misery……
Losing your job is a consequence of your actions, if you indeed want to save your marriage.
I do recommend that you and your husband get tested for STDs, you may not have been your co-workers only affair, remember that.
Once you have severed the ties completely with your affair partner, it will become easier for you and your husband to work on your relationship, and address the issue of what caused you to want to cheat in the first place, etc.
Remember that is will take a lot of time, love, and forgiveness to get past this, and a lot of commitment, from both of you……
Reach out to trusted family, friends, clergy, or all three, don’t go it alone. Reach out to God in prayer, he is listening, and can help………
I wish you the very best, and will say a prayer for you all.