After She Wrote Him by Sulari Gentill

A metafictional literary thriller in which a novelist becomes entangled with the character she is writing—and who, in turn, believes he is writing her—until the boundaries between creator and creation dissolve amid a suspicious death, obsession, and rival drafts. As their mirrored stories twist together, reality blurs, loyalties shift, and the race to solve a murder becomes a struggle to determine who is real, who is imagined, and who will survive the final page.

Purchase from Bookshop.org