That's pretty rough. Poor kid. Don't be afraid to go swimming, though! I learned from my very handy 5th grade teacher to swim perpendicular to the riptide to get out of it. You may want to take a gander at this article that shows how to escpe a riptide -- it's more illustrative than me saying "swim sideways".
How to Survive a Riptide