Problem/Motivation
Discovered in #3394694: [Meta] Symfony 7 compatibility and #3425150: Symfony deprecations in Constraint plugins and already handled for one case in #3276196: The "Symfony\Component\Validator\Constraints\Range::$minMessage" property is considered final, Symfony considers public and protected class properties to be final. Validator constraint messages are declared as properties and where we need to override these (usually because we change the way they are formatted) we have done it by redeclaring the properties.
Steps to reproduce
https://git.drupalcode.org/issue/drupal-3394694/-/jobs/990299
Look for "Property ...Constraint... overriding property ... should also have native type ..."
Proposed resolution
Switch AllowedValuesConstraint, CountConstraint, LengthConstraint and RegexConstraint to use the constructor technique used in RangeConstraint from #3276196: The "Symfony\Component\Validator\Constraints\Range::$minMessage" property is considered final.