"A Little Help From My Friend," by John Dobbyn, in Ellery Queen's Mystery Magazine. March/April 2020.
A quickie this week, although I don't think it quite fits under the line for flash fiction.
John wakes up in the hospital and realizes someone tried to kill him and almost succeeded. He is almost helpless but he has one surprising ally. You see, John writes private eye novels, and his star character, Mickey O'Casey, is determined to keep him alive to write more books.
Can a wounded author and a fictional hero work together to figure out whodunit? This is a very clever story.
One thing: Dobbyn could have used a little help from his editor. There's a glitch I will explain in a comment.