Create New Brush Tip
Straight Line Tool → Select Dotted Line in Brush Shape → Draw the line → Register it as a Brush Tip Shape.
Replace Brush Tip
Duplicate the brush you want to customize → Open Advanced Tool Settings → Brush Tip → Material → Remove the original brush tip and replace it with your newly registered brush tip.

5line
7line
10line