You searched for: “enigmatist”
enigmatist (s) (noun), enigmatists (pl)
A maker or producer of riddles: Gisela was a well-known enigmatist who produced puzzles in the form of questions and rhymes that contained clues to the answers.
One question written by the enigmatist was: "Why did Sam get a job at the bakery? Because he kneaded dough".