Oh, that is in another universe.
Do you remember the stories of the games sonic and the secret rings and sonic and the black knight?
In those universes, the characters' roles and personalities weren't the same as the original ones
Well I had been writing a fanfic based on the story of the three musketeers, and so sonic got into that dimension