Adding an additional paginated page to the content

We know that adding <!–nextpage–> allows you to paginate the content of the post/page in WordPress. Also if you want to append the content you can use the_content filter. This filter though works but adds that content to all the pages instead of creating a new page for that content.