Nerves usually grow an inch per month so it could take up to a year for the nerve to fully grow back.
But the nerve should start to heal within 4 weeks after having the surgery.
It also depends on what nerve you're actually talking about since some nerves grow back faster than other nerves but a year is usually how long it takes for most nerves to fully grow back.