A lot of what the 47th and people in his administration did are already punishable by law - alone the Signal affair or other violations of the Public Records Act.
It would not be a ex post facto prosecution, it would simply be a prosecution by a court of law that is reasonably free from corruption.