Is there any way that we could load disk utility or any disk repair tool from a USB in mac? Recently my Mac crashed due to kernel panic. I tried using disk utility to repair the disk but the parent disk couldn't be repaired. And I opened up the terminal and erased the current boot disk. And after that the terminal couldn't execute anymore as I guess the resources for the terminal was deleted when I erased the disk.
Now am stuck up. Internet recovery won't work maybe because the SSD isn't formatted in apple compatible format.
And I was wondering if there's any way we could load disk utility or any other disk repair tool from USB so that I could repair the main SSD of the MacBook into a compatible disk for reinstallation of macos
A macOS installer environment includes Disk Utility. You can create an install USB using createinstallmedia and a downloaded copy of macOS. For example, for Catalina, you can run:

sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume


How to create a bootable installer for macOS - Apple Support
n.b. Internet Recovery should work regardless of hard drive, even without one at all, since it is loaded into RAM from an internet connection.