Code structure headers rendering out of place in 11.5

With 11.5 it seems that code structure headers render strangely mid document on certain changes:

Kapture 2023-09-22 at 23.49.02