They answered him, “Jesus of Nazareth.” Jesus said to them, “I am he.” Judas, who betrayed him, was standing with them.
John 18:5 ESV

The ESV, usually very literal, I think adds too much text here. Yeshua didn't say "I am he", but simply "I am". Of course, one can still argue about what he meant by that.

In this chapter, Yeshua is recorded saying "I am" three times, while Peter says, "I am not" three times.