WordPress get_pages sub nav show current page

You’ll have to use this function get_queried_object_id(), if the ID returned by this function is equal to the ID of the page ($page->ID in your code), that’s the current page.

Based on that you can add a class.