I've put together a Table of Contents using InDesign's dot leader function, and the right indent feature (Type - Insert - Special Character - Other - Right Indent Tab). All the dots align properly on the right side, immediately before the page numbers. However, there is inconsistency with the spacing of the dots immediately following the text.
As you can see, some of the leader dots begin very close to the closing parentheses in the text, other have more space.
Tab leader dots line up with each other from line to line so the space before and after the leader can’t be consistent—if the dots line up something has to give on either end:
If your preference is the have the before and after spaces be consistent, you can set a dotted underline to the Right Indent Tab. Here the before and after spacing is consistent, but the leader dots no longer line up vertically:
Sorry—I was lining up the right side (which is the more common concern), but you are asking about the left.
The dots need to line up in columns (see how the right side of each dot is aligned with your ruler guide), so they start closer or further from the end of the text depending on the actual characters. Mine are only lining up because I used the same words four times. That's just how it works.