As you have now read, its 2.5m max if any part of the building is within 2m of a boundary. And as mentioned brick or wood makes no difference.
Planning permission may be granted, especially if you only want to go a little higher. A few hundred quid on the cost of the project for a bit more...