type Test = T extends `${infer Key}.${infer Rest}` ? Rest : never;
This works when you infer with a static string
Test<\'test.test