Heat olive oil in a dutch oven or wok over medium-high heat. After 90 seconds, when the oil is hot, add the tofu pieces in a single layer. Cook for 3–4 minutes on each side until golden brown and crisp. Transfer to a plate and set aside.
In the same pan, add the additional olive oil, keeping the pan over medium-high heat. After 60 seconds, when the oil is hot, add the Thai eggplants and sauté for 3 minutes, stirring occasionally, until lightly browned all around.
Add the shallots and lime leaves, stirring for 2 minutes until fragrant and softened.
Reduce to medium heat and stir in the red curry paste, grated ginger, and bird’s eye chilies. Cook for 1 minute, stirring continuously, until the curry paste darkens and starts to break down.
Pour in the coconut milk, stirring to combine. Add the sugar, lime juice, and salt, stirring until the sugar dissolves. Bring to a gentle simmer and cook for 5 minutes, stirring occasionally, until the eggplants are tender all the way through.
Stir in the green and red bell peppers. Cook for 2 minutes until slightly softened, then return the fried tofu to the pan. Stir gently to coat the tofu in the curry.
Add the Thai basil leaves and cook for 30 seconds until wilted. Remove from heat.
Serve hot with cooked jasmine rice, garnished with cilantro leaves, Thai basil, and sliced bird’s eye chilies if desired.