This appears similar to Java's String Template preview feature that was withdrawn:
https://openjdk.org/jeps/465
This is probably the best overview of why it was withdrawn:
https://mail.openjdk.org/pipermail/amber-spec-experts/2024-A...