WordPress wp_localize_script nonce and ajax URL

wp_localize_script() doesn’t care much which script handle you use as long as it is a valid one. You could use your theme’s or Elementor’s main script handle with the function to make the data available for your script. You’ll need to check your theme’s or Elementors source coude to find what these handles are.

Side note: It says on More information on the documentation that it is nowadays recommended to use wp_add_inline_script() to provide data to scripts as

wp_localize_script() should only be used when you actually want to
localize strings.