WooCommerce Registration redirect based on page ID

The woocommerce_registration_redirect is a filter hook, but NOT an action hook.
I’ve tried the shortcode provided in the mentioned link in your comment above and it works for me in this way:

function AS_redirection_after_registration($redirection_url) {

   if($redirection_url =="first-page-slug") // $redirection_url is the slug of the current page where the shortcode is placed
    return home_url('/my-page');
   elseif($redirection_url=="second-page-slug")
    return home_url('/my-second-page');

  return home_url('/checkout/');
}
add_filter( 'woocommerce_registration_redirect', 'AS_redirection_after_registration', 10, 1 );

So the $redirection_url parameter passed to the filter gives you the current page slug where the shortcode is placed and, basing on that, you can decide where to redirect to after registration.
Remember to always return something when using filter hooks,