Three buildup of troops by Russia along the Ukrainian border started in 2021, which is when the US left Afghanistan.
I'm not the parent nor am I saying the two wars are related but it's not unfathomable to think that American intelligence could have predicted a war between Ukraine and Russia at the same time as they were exiting Afghanistan