Text this: Complex solitary wave dynamics, pattern formation and chaos in the gain–loss nonlinear Schrödinger equation