In recent zod, You can get them by keyof().options.
keyof().options
const keys = schema.keyof().options