Space Shooter Enemy Formations

when i was trying to make an arcade shooter that i stopped (because reasons) i played with the spawning location and custom rules for formation of single spawned enemies units but after a point every wave became complicated to script