I agree that it’s unconstitutional to bar those possessing U.S. citizenship from re-entering the country, but aliens do not have any constitutional rights whatsoever to come here in the first place.
It’s called exile, and in times of war it’s not unusual to see some rights restricted.
People traveling to Pakistan to take terrorist training should have not recognizable rights trying to return to our nation.