cloud-localds also works on MacOS with a little patch. After all, it's a bash script.
brew install cdrtools
wget -O cloud-localds https://github.com/canonical/cloud-utils/raw/main/bin/cloud-localds
sed -i 's/genisoimage/mkisofs/g' cloud-localds
chmod +x cloud-localds
You can install Docker Desktop and then try running it via Docker.
To do so,
You can create an alias for the command above to make it easier to use.