A 37-year-old man has been charged after a young girl was allegedly sexual assaulted in Sydney’s Upper North Shore two years ago.