A red squirrel that was hit by a car has been released back into the wild following weeks of treatment and rehabilitation.