Custom user registration shortcode – redirect header issue

You have to rely on javascript for the redirect. You can set it like this in your shortcode.

 $html = "<script>
              location.href = "https://wordpress.stackexchange.com/questions/157922/. $home_url() ."
          </script>";
 return $html;

It will load the page and then redirect immediately.