What algorithm are you using for it Spanning Tree?
I have been working on Maze Generation[0] and found randomized Prim's, Kruskal's to be useful for Spanning Tree creation but the good old Depth First Search increases the difficulty of solving a Maze.
[0] https://github.com/emadehsan/maze/blob/main/media/hexagonal....