The details are very different, but variations on this theme have played out for a long time. I have seen fixed income instrument modeling systems 20 years ago that allowed Traders to put in limited C++ code to define new exotic instruments.
At least that stuff had guardrails around it.
This is gold! :-))