So I’m not sure what your character is class wise. But if they’re good at sneaking and ranged attacks there’s a way to get into the rafters above the Hobgoblin. Attack and immediately go into hiding. Rinse, lather, repeat. IF they do come out and chase you the platform that you have to get up to get to the rafters has only 2 ladders up. So you could use Shadowheart to push off (or at least try).
Oh no! Anyways…