Your 1st and 3rd steps seem reasonable to me.
As to the second, the carbonyl directs lithiation to the observed regioisomer.
Then the negative charge attacks the carbonyl of DMF, forming a tetrahedral intermediate, and the least worst leaving group to be kicked out on reformation of the carbonyl is the dimethylamide ion.
At least, that's my understanding.
A