Format USB drive in MacOS

List all disks in system:

diskutil list

Unmount USB stick (if mounted). /dev/disk2 - is the USB drive:
diskutil umountDisk /dev/disk2

Format in FAT32 the disk and label it as Stick:
sudo diskutil eraseDisk FAT32 Stick MBRFormat /dev/disk2