Hello my pal, if you want to retrieve data from your almost-corrupted SD card that is not detected by any device, I suggest you check the connection between your SD card and the device in the first place.
In general, you can connect your SD card and the device using an alternative SD card reader or SD card adapter. While inserting the SD card into another device is not advised since your SD card is not detected by any device.
If an alternative SD card reader or adapter fails to make your memory card be detected by a computer, phone, or camera, I can tell that your SD card is corrupted and there is a slim chance to access the data on your SD card, not to speak of retrieving the files and documents from it.
Wish you good luck!