Sorry I went the wrong way.

Literal

Direction [object-を] mistake-[sequential-て] sorry

間違える is the transitive 'to make a mistake, mistake X' (takes を). The て-form connects to the apology すいません, giving 'mistook... and I'm sorry'. すいません is the colloquial version of すみません — both mean 'sorry/excuse me'.