If I understand you correctly, your question aims at having TS autocompleting for parts of a string.
I do not think this is possible.
const noAutoCompletion : `foo-${string}` = 'foo-bar'; const hasAutoCompletion : 'foo-bar' = 'foo-bar';