Iโve been using spacers in my dock forever, it a super nice way to organise apps within my dock. I use them to categories apps, in the screenshot you can see Iโve separated design apps and dev apps.
Open up Terminal
Open your favourite terminal application, Iโm using Warp.
Execute the command
The spacers come in two sizes, use whichever you prefer, Iโm using the small spacers in the screenshot above.
Small spacers:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'; killall Dock
Large spacers:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
Arrange them however you please
You can move the blank space around like normal apps, you also remove them the same way too. To add more spacers, simply run the command again, or as many times as you need!