Vanilla js eventlistener

Is there a way to make the handler gform_confirmation_loaded works with vanilla JavaScript?

document.addEventListener(‘gform_confirmation_loaded’, () => {

});

The gform_confirmation_loaded event is triggered by jQuery. However, listening for this event using vanilla JavaScript can be challenging as jQuery’s custom events do not directly correspond to native JavaScript events.