Sorry but this has nothing to do with the 24H2 update.. at all. This bug is here for a couple of years already, in the W11 releases. The solution you provided is indeed the good one, thank you for sharing it here.
The 24H2 update for Windows 11 is now being rolled out, and some users are encountering a frustrating bug causing the cursor to disappear in certain scenarios. Thankfully, an easy way of dealing with the issue has already been discovered.