If you're going to play a high-quality racing sim on your PlayStation 5, then you need a high-quality racing wheel like these ...
You can connect your PlayStation 4 controller to your PC using a micro-USB cable or wirelessly via Bluetooth.
It's possible to connect your PS4 controller to a Mac computer to play digitally downloaded PlayStation 4 games without using a PS4 console.