PrusaSlicer lets you define a repeating pattern of color changes. You can access this feature by clicking the gear icon in the bottom right corner of the preview screen.

To remove all of the color changes use the reset button located in the bottom right corner of the preview screen.
You can repeat the same color (extruder) in the sequence several times.
