https://bugs.winehq.org/show_bug.cgi?id=56918
--- Comment #3 from Todd Chester ToddAndMargo@zoho.com --- (In reply to Todd Chester from comment #2)
Fedora 39's repo is on staging 9.1. This came from your repo. at https://dl.winehq.org/wine-builds/fedora/39/x86_64/
Fedora 40 is on 9.5
This is your bug. see https://wiki.winehq.org/Fedora
dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/40/winehq.repo dnf install winehq-staging