Question @anzere,
Why do you have a "S1" in this sentence?
; pause.g
G1 Z5 S1 F360
My guess is that the material seeps out.
Your sequence will be executed first the unretract.
Try this order:
; resume.g
G1 R1 X0 Y0 Z5 F9000 ; go to 5mm above position of the last print move
G1 R1 X0 Y0 Z0 ; go back to the last print move
G1 E10 F3600 ; extrude 10mm of filament
https://forum.duet3d.com/topic/4612/problems-with-pause-function-m226