Haven't tried it, but applications like these are the best uses of LLMs. Translation from an informal human language to a formal language that the human can review, and can be manipulated formally further.
I believe the attempts to have LLMs "write the code" or "reason" are wrong. What we need is to move to more formal languages to replace the ambiguity of natural language.