Seems you're forgetting the timeline. Immediately after the 2014 coup the new US-approved government changed the Constitution to the 2004 version which allowed for a vote to join NATO[1]. Then Russia invaded Crimea as a result, since a country not in control of its borders would not be eligible to join NATO. Then in December 2014 Ukraine voted to abandon neutrality and begin the process of getting into NATO anyway.[2]
Trump's presidency definitely put a pause on this plan, but now that Biden is back on top the clock has started ticking again. So yes, Ukraine was very much on its way into NATO, but they needed to either officially cede Crimea and Donbass to Russia, or expel Russia to be eligible. So something had to give.
[1] https://en.interfax.com.ua/news/general/191727.html
[2] https://www.rferl.org/a/ukraine-parliament-abandons-neutrali...