static bool isValidKey(String? s) { if (s == null || s.isEmpty) return false; return _validKeyPattern.hasMatch(s); }