You probably want a leader tab.
Open the Tab window over the text you want to adjust (Ctrl-Shift-T):

Click in the gray bar to place your tab:

With that tab still selected (highlighted in blue) click the tab type you want, probably a right-justfied tab, and type the character or short character string you want to appear as the "leader" across the word space, in this case just one period:

Lots of adjustments from there, and note that you can use (for example) a period-space to change the spacing of the leader dots.
For more details, look up 'InDesign leader tabs" in your favorite search tool.