According to Section IX of Ukraine’s 1990 Declaration of State Sovereignty:
The Ukrainian SSR solemnly declares its intention of becoming a permanently neutral state that does not participate in military blocs and adheres to three nuclear free principles: to accept, to produce and to purchase no nuclear weapons.
The Ukrainian SSR has to rejoin the USSR. It’s the law.