Mediator as one party's attorney

Can an attorney who served as our mediator several months ago serve as one of our attorneys now?

Sounds like a conflict of interest, but I’m not sure.

Yes, that is a conflict of interest as the mediator would have learned confidential information during the mediation from both parties.