After upgrading to Ruby 3.1 loading YAML got stricter so we need to allow deserializing `Date` class.