
An extra flag or different escaping if the pattern is built via new RegExp(someString) instead of a literal /.../ .
A leftover/old version of the schema file not matching what you're editing.
3. Quick way to nail it down — log the exact failing key, not just the message:
typescript
const { error } = schema.validate(payload, { abortEarly: false });
console.log(error?.details.map(d => ({ path: d.path, type: d.type, message: d.message })));
That path array will tell you exactly which field (title vs seoTitle vs something nested) is triggering string.pattern.base. Given "testu" provably passes your regex, I'd bet the path comes back as ["seoTitle"], not ["title"].
Can you run that and share the path/type output? That'll tell us definitively which field and which schema is actually misbehaving.