it is partly possible to generate something what you desire, but not exactely.
You have to insert the kilometer as own style (in this example Head 3) and not assign a color.
For text corrections you can temporarily set the color to black.
In the TOC the red side line is created in paragraph style Ihv 1: Head_ 2, the background for the kilometer in Ihv 1: Head_ 3.
You can see this in the attached example.
Unfortunately, I haven't found a way to make the points before the page number in roman and to set the color to black without changing back to the original version with every update of the TOC.
The TOC function seem to be somewhat buggy yet for me.
Maybe there are better options.