schema for regex query