Andy is by no means innocent, he’s just not guilty of any crime he should have been imprisoned in Shawshank for.
The guy who sits drunk in his car eyeing a revolver is not a Mary Sue. And his demeanor of resignation at Shawshank suggests he doesn’t consider himself just an unlucky victim of blind fate & a golf pro.