KiCad 7.0.2 Schematic Editor: Building single net over two sheets with Hierarchical Labels leads to broken nets
# Description
I connect two signals in two hierarchical sheets on the main sheet.
So 4 chip pins ("CPLD1.DEV_OE", "CPLD1.DEV_CLRn", "CPLD2.DEV_OE", "CPLD2.DEV_CLRn") should be connected by one net ("REG_ENABLE").
However, the net is broken. This propagates to PCBEdit and resulted in manufacturing errors.
See screenshots:
Main sheet: single net

sheet 1: hierachical labels not connected to main

sheet 2: partly connected to main via global label,

# Steps to reproduce
Not sure. Best checkout my project.
Bug was not there in latest Version 5.12.
[qbone-2023-05-01_095141.zip](/uploads/129f60d61acd7eb975952051ba0d3079/qbone-2023-05-01_095141.zip)[qbone-2023-05-01_095141.zip](/uploads/28dfe4b1e78e283a5f1ae649a7843520/qbone-2023-05-01_095141.zip)
# KiCad Version
```
Application: KiCad Schematic Editor x64 on x64
Version: 7.0.2, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 15 2023 19:18:27
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
```/
issue