I was stuck in the beta for 2 to 3 weeks and I recently found a way of getting the regular game. Maybe it might help but, I don't know. A lot of people seem to be stuck in the beta for alternate reasons.
https://www.reddit.com/r/xboxinsiders/comments/8l12h9/cant_opt_out_of_minecraft_beta/dzc7f6r/
The caseymccb guy was the post that helped me get back to the actual game. If you want more details on what I did in particular related to that guy's post. Please let me know.
It was different for me because the issue wasn't related to Minecraft itself. It was more of a Microsoft Account/Xbox Insiders issue