^\d{4}-\d{2}-\d{2}$ Matches: ✓ 2026-01-11 ✓ 1999-12-31 ⚠ 2026-13-99 (invalid but matches)
^\d{4}-\d{2}-\d{2}$
No, it only checks format. For real date validation (no Feb 30), use Date parsing in your programming language.