The ex post facto prohibition applies to only to criminal law.
You are correct. I went and did some reading on it.