Critical behavior at the localization transition on random regular graphs