Java delegate expression is not getting resolved

JavaDelegate is an interface, so you should write as

@Slf4j
@Component
public class UserValidationDelegate implements JavaDelegate {
       
    @Override
    public void execute(DelegateExecution execution) throws Exception {
        // delegation code here
    }
}

Refer these examples: