Cosmo does not appear in Sonic Riders (2006).
Origin: Cosmo is a Seedrian character from the Sonic X anime (Season 3, "Metarex" saga) and Archie/Sonic Universe comics. She is not a game character.
Cosmo appears in Sonic X (episodes 53–78) and the Sonic the Hedgehog comic series. She was never in a Riders game.