The above example does not work with Strapi v4!!!
I have successfully modified Strapi v4 source code (just 1 line of code) to make custom field renderer works with plugin. And it won’t interfere with Content-Type-Builder try to save.
I am making a youtube video and will share the link soon.