Loops, regular permutation sets and colourings of directed graphs