If we're going to check the value at this level of granularity, we might as well support formats like "Chr 2" as well. Please add a regex to first match the pattern ^chr\s*([0-9a-z]+)$ (case insensitive) and then check the captured group against the list of allowed values.
https://github.com/InformaticsGenomicMedicine/DraftCoreDataModel/blob/79450932a44ee677816f9c02e6f5660ea03e5ec1/src/core_variant.py#L179C19-L180
If we're going to check the value at this level of granularity, we might as well support formats like "Chr 2" as well. Please add a regex to first match the pattern
^chr\s*([0-9a-z]+)$
(case insensitive) and then check the captured group against the list of allowed values.