Starting with SQL Server 2019 it is possible to inline scalar functions. This feature improves the performance of queries that invoke scalar user defined functions (UDFs) (https://docs.microsoft.com/en-us/sql/relational-databases/user-defined-functions/scalar-udf-inlining?view=sql-server-ver15).
One of the requirements is that the function should not reference user defined types. Unfortunately (for SQL Server) the Software Factory creates function parameters based on the user defined type (user_defined_dttp).
If the parameters would be created using the SQL data type (dttp) a scalar function could become an inline scalar function.
It’s possible to implement this with a tag and a dynamic control procedure (override the generated parameter value), but it could also be done by default.