We need to move to exclusively pydantic v2 classes, see here: https://github.com/OpenFreeEnergy/openfe/issues/1428