Filled Space is a problem in InDesign

Hello all,
I have a font in progress that has a solid colour background. Here it is in black for now. I have created the numbers 0 to 9 and the brackets “(” and “)”. Also a ligature of “((” and “))”, which should create a round beginning and end respectively.

In Photoshop and Illustrator it works when I write “((01 23))” with ligatures turned on. Between 1 and 2 the normal space.

In InDesign the ligatures are “defective” because a bar appears in the wrong place. As I found out by changing the colour of the space to red, InDesign adds a space at the end of a ligature.
Is there a trick in InDesign to prevent this?

Attached is ZTimeSaver.otf (space is normally transparent) and ZTimeSaver-Space-Red.otf (space is red) for testing, as well as the InDesign document.
(macOS 10.15.7, InDesign 2022 - version 17.1)

I will also report it to Adobe in the InDesign forum.

  • j. (625.1 KB)

Update: This is the link to the InDesign forum about this problem:
Looks like that I have found a bug in InDesign.