I like pastiches which maintain original voice or style and looks something like what Doyle will actually write and set in the canonical universe. So no female sherlock, sherlock in mars, or things that go out of characters. Kindly recommend them here, please.
Oddly enough, the only story like that that I've read is by Stephen King. Yes, the master of horror wrote a straight Sherlock Holmes pastiche, though he did throw in some unexpected plot twists. It's called "The Doctor's Case," and it appeared in some anthology of Holmes stories and in King's collection Nightmares & Dreamscapes. I also really enjoyed Neil Gaiman's Holmes / Cthulhu mashup "A Study in Emerald," but that's definitely not what you're looking for.
The best ones I've seen that had the original characters were the novels by Nicholas Meyers: The Seven Percent Solution, The West End Horror, The Canary Trainer, The Adventure of the Peculiar Protocols, and the Return of the Pharaoh. I've also read the books by Kareem Abdul-Jabbar and Anne Waterhouse, but didn't think they got the style quite right. And August Derleth wrote a very good series featuring the detective Solar Pons, who lived at 7B Praed Street in the London of the 1920s. They've been favorably compared to the Conan Doyle canon. Wikipedia has this write-up of the series: https://en.wikipedia.org/wiki/August_Derleth#Detective_and_mystery_fiction
Only in the same sense that James Patterson 'wrote' most of the crap published with his name on it for the last fifteen years or so.
Kareem is a pretty smart guy. I could see him constructing the plot and Anne doing the necessary polishing work. It was probably a greater contribution than Bill O'Reilly made to the "Killing..." books.
How about this one by Dan Simmons? "The Fifth Heart" In 1893, Sherlock Holmes and Henry James come to America together to solve the mystery of the 1885 death of Clover Adams, wife of the esteemed historian Henry Adams -- member of the Adams family that has given the United States two Presidents. Clover's suicide appears to be more than it at first seemed; the suspected foul play may involve matters of national importance. Holmes is currently on his Great Hiatus -- his three-year absence after Reichenbach Falls during which time the people of London believe him to be deceased. Holmes has faked his own death because, through his powers of ratiocination, the great detective has come to the conclusion that he is a fictional character. This leads to serious complications for James -- for if his esteemed fellow investigator is merely a work of fiction, what does that make him? And what can the master storyteller do to fight against the sinister power -- possibly named Moriarty -- that may or may not be controlling them from the shadows? I've got it on my to-read list. Simmons is so good at getting down those old voices (check out "The Terror" which is a bit like Melville and "Drood" which mirrors Collins / Dickens) that I can't imagine this is off-tone.
Ooh, that does sound interesting. And yes, Simmons can be amazing, though sometimes his endings are a bit lacking. But that might just be because he does such a great job setting up the mystery and suspense in the first half of the story that (at least with his epic sci-fi series) any resolution would be a letdown.
I recall that Twain did one about Holmes visiting the old west. He kept aspects of Doyle's style, but made it his own. It was "the double barrel detective"
I read a Sherlock Holmes story by M Pepper Langlinais Not sure about the plot (it was a few years ago), but I seem to remember that she did a pretty good job nailing the style of Conan-Doyle
The Seven-Percent Solution. Its a film but its good because its more than a pastiche. It concentrates on Holmes cocaine use, which Doyle just lets trail off to nothing in the stories. Doyle did that a lot with the Holmes stories; I definitely got the impression that he cared a lot less for his stories and characters than most of his readers did. See, for example, Watson's gammy left leg, or is it his right shoulder, or his left shoulder..? https://en.wikipedia.org/wiki/The_Seven-Per-Cent_Solution_(film)
Depending on how narrowly you define 'pastiche', you could make a case for Rex Stout's Nero Wolfe series.
It's also a book (I just finished re-reading it and enjoyed it a lot). The book was published before the film was released, but I suspect that the screenplay was written simultaneously with the book. At the time of the writing of the screenplay, there was a writer's strike, so the film had to be shelved for the moment.