I tried the terminal command but it doesn't seem to be able to format my usb stick for APFS sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled