User Defined Functions in Dialect

Looking to migrate from Hibernate 5.X to 6.1.
I have a custom Dialect where I register a number of functions in the constructor: e.g

registerFunction(“ecfts”, new PgFullTextSearchFunction());

This approach is no longer supported. From what I can find, it looks like I will need to implement something along the lines of a FunctionContributor. However, I have not had any luck finding a working example, and if this is actually the best practice going forward.
Any suggestions?

Thanks,

Tim