Liquid is not evaluated in YAML frontmatter. You can try flatify plugin covered in the thread. Or you going to have have to duplicate your text in two values.
If it was some other field and not permalink, I would have said move the logic to a layout which can take a field on the page and rework it into html output