Problems with using Contact Form 7 in an Elementor Pro Popup

Solution:

jQuery does not use ES6 arrow functions and the double-quoted string needs to be single quotes:

<script>
  jQuery( document ).on( 'elementor/popup/show', function() {
     wpcf7.initForm( jQuery('.wpcf7-form') );
  });
</script>