In this paper, we investigate the flow and flame dynamics within a combustion chamber supplied with nitrogen-diluted hydrogen fuel and air as oxidiser. The chamber is equipped with a bluff body that serves as a flame stabiliser. We focus primarily on the influence of the bluff body shape on the formation of large and small-scale vortical structures generated at the bluff body edge. We analyse how the geometry of the bluff body alters these structures and examine the impact of resulting modifications on flame characteristics, including key features such as flame length and radial extent, temperature and species field, and completeness of the combustion process. We consider four bluff body geometries, namely a typical cylindrical shape, a star-shaped wall, and a small triangular sharp and smooth wavy structure. The research employs the Large Eddy Simulation (LES) method, providing deep insight into the complex physics of unsteady flow. In the cylindrical bluff body configuration, the key mechanism driving the fuel-oxidiser mixing process is the periodic occurrence of large toroidal vortices shed at an exit of the oxidiser duct and on the bluff body edge. They exert the flow towards and away from a recirculation zone formed above the bluff body. When its geometry is irregular, the appearance of the large vortices is suppressed, however, the wall irregularities induce small-scale flow phenomena that enhance mixing in the shear layer formed between the recirculation zone and the oxidiser stream. The mixing efficiency is largely dependent on the shape of the bluff body wall, and it turns out that seemingly small changes (sharp vs. smooth small triangular parts), which in non-reactive regimes have only a minor effect on the flow dynamics, significantly change the flame length and fuel consumption rate. Compared to the cylindrical bluff body configuration, the small triangular parts cause an axial shift of the maximum temperature downstream and slow down fuel consumption. Contrary, large triangular elements in the star-shape bluff body clearly influence the flow both in non-reactive and reactive regimes. They cause the formation of local oxidiser streams directed towards the fuel-rich mixture. Consequently, the injected fuel burns at a rate similar to that observed in the case of the cylindrical bluff body, but the combustion process occurs at an average temperature approximately 200 K lower and its fluctuations are reduced. These factors may influence the thermal reduction of NOx. On the other hand, a negative aspect is the highest level of hydrogen in the closest vicinity of the bluff body, which in practical applications may accelerate the embrittlement of its surface.