The Supreme Court wrestled with whether restitution was being used as a civil remedy or a criminal punishment that violated the Ex Post Facto clause.
https://www.theepochtimes.com/us/scotus-considers-whether-victim-restitution-law-violates-bar-on-retroactive-punishment-5929334