This is a subjunctive construction, and the correct sentences are these:
"I wish I was/were as lucky as you" - You're talking about something unreal or imaginary, i.e. you are never that lucky as him.
"I wish I had been as lucky as you" - You're taking about something that happened in the past but you'd prefer a different course of events. For example, your friend escaped some