Reviving unmountable & unformattable usb drive
It seems like the partition may have been deleted.
Try the -f option.
sudo gpt create -f /dev/disk2


By default, one cannot create a GPT when the device contains a
MBR, however this can be overridden with the -f option.  If the
-f option is specified, an existing MBR is destroyed and any par-
titions described by the MBR are lost. - [GTP Man Page] https://www.manpagez.com/man/8/gpt/

This post may help you: How to fix broken GPT, GUID and unmountable, no type volumes?