What is the exact 24H2 Build # you are using?
Here is the problem that I saw with Build 26100.2152 and reported by other users:
After updating to 26100.2152, I found that "File and printer sharing" got turned off, and I had to turn it back on to get my local network to work properly again.
I also had to enable the new option in the security settings "File and printer sharing (Restrictive)"

Enabling the above setting got rid of the yellow warning message showing on 1st shot.
This security setting "File and Printer Sharing (Restrictive)" was disabled in one machine after the update to 26100.2152.

I had to enable manually "File and Printer Sharing (Restrictive)", in my case just for Private network which is what I 'm set for.
After that the file sharing started to work correctly.

When it failed before changing the settings, it was just hanging trying to access the 26100.2152 PC and eventually pop up the message below.
It worked fine after fixing the settings described above.

What's new in Windows 11, version 24H2 for IT pros | Microsoft Learn
SMB firewall rule changes
The Windows Firewall default behavior has changed. Previously, creating an SMB share automatically configured the firewall to enable the rules in the File and Printer Sharing group for the given firewall profiles. Now, Windows automatically configures the new File and Printer Sharing (Restrictive) group, which no longer contains inbound NetBIOS ports 137-139.
This change enforces a higher degree of default of network security and brings SMB firewall rules closer to the Windows Server File Server role behavior, which only opens the minimum ports needed to connect and manage sharing. Administrators can still configure the File and Printer Sharing group if necessary as well as modify this new firewall group, these are just default behaviors.
For more information about this change, see https://aka.ms/SMBfirewall. For more information about SMB network security, see Secure SMB Traffic in Windows Server.