The shortcode is escaped when the page is saved.

Hi guys.

I have a dilemma, I am not sure how to solve this.

I have a plugin that accepts the video URL directly in the shortcode the issue is that the post is escaping the URL, and after the refresh, the URL is unusable because esc_html is removing characters that should not be removed from the URL, is there any way to fix this? I mean to somehow filter the shortcode block and prevent this escaping?

Thank you.