If you iPad is not recognised when connected to your computer, try using a different USB port; if your computer has both USB-C and USB Type-A ports, try using the USB Type-A port of the computer.
If difficulties persist, this support page may help with troubleshooting:
If your computer doesn't recognize your iPhone or iPad - Apple Support
You are not limited to using a Mac to restore your iPad; a Windows 10 or Windows 11 PC (with the Apple Devices App installed) is just as usable:
Download and use iTunes for Windows – Apple Support
Update to the latest version of iTunes – Apple Support
Apple Devices App (Windows PC):
https://apps.microsoft.com/detail/9np83lwlpz9k?hl=en-ms&gl=MS
If you don’t have access to a suitable working computer of your own, that of a helpful friend or family member will suffice. Alternatively, the technicians at the Genius Bar of your local Apple Store will be delighted to assist with restoring your iPad:
Genius Bar Reservation and Apple Support Options - Apple