Override wp_link_pages pagebreak with filter

So I just found this filter:

the_posts

https://codex.wordpress.org/Plugin_API/Filter_Reference/the_posts

Send it to a function, and the first parameter is the entire post page with the pagebreak.

My plan is to run it through regex, delete the first occurence of the <!--nextpage--> and return it. I’ll see if that works