As far as I'm aware, the game should recognize any plugged in (or bluetooth) controller immediately. If for some reason, this isn't working, I would try having Steam running in the background (with your controller set up through Steam) or running an external software like DS4Windows.
I haven't had this issue, but I also always have DS4Windows running in the background on my computer automatically, so that might be the issue! I hope this helps!