so id recommend u use the riders dolphin emulator. this is better than both the ps2 or normal dolphin (wii/gamecube) emulator because its customized specifically for sonic riders games, making them run much better on pc. that said the only downside to it is u will get the gamecube/wii version of the game, which means the controls displayed on the screen will be wii controls (not the nostalgic ps2 ones kek), but u can easily play the game with a Ps3/xbox controller or keyboard. u'll set those up in the emulator itself
the riders dolphin emulator:
https://drive.google.com/file/d/1PrcCiFGB2TRZDHHGQdaU91N5tZE9NkIZ/view
youtube vid that can help u set up a controller in rider dolphin emulator:
these r the iso files. you need to download and extract those, then open them with the emulator to play them
zero gravity:
https://romsfun.com/download/sonic-riders-zero-gravity-2-13943/2
sonic riders:
https://romsfun.com/download/sonic-riders-28247/3
i tested both now they still work