Custom lookup should still be invoked using the lookup function, something like:
myproperty={{ lookup(‘my_custom_lookup’, my_custom_var1) }}
And you would need to use the template module as a task to get that templating to be run. No need for copy, as template can handle a destination.