FARA regulates advocating in the US.
The rarely used Logan act prohibits negotiating with foreign government outside of approved channels.
https://www.justice.gov/nsd-fara
Ukraine's elections and advocacy are under their laws and regulations, not ours.