It is not a simple case unfortunately.
It should’ve been picked up at planning/building regs/architect stage that your flue was going to be a problem.
Ultimately the builders should not have done anything to deem a gas installation unsafe. They are at fault for doing so. How you remedy that...