If you have Logitech GHub installed you could try uninstalling that, I've heard it can cause issues with Moza wheels.
If that doesn't work you can try copying and pasting the below into the device_defines.xml file
<device official="false" name="moza_wheel_r16_r21" type="wheel" id="{0000346E-0000-0000-0000-504944564944}" priority="100"/>
<device official="false" name="moza_wheel_r9" type="wheel" id="{0002346E-0000-0000-0000-504944564944}" priority="100"/>
<device official="false" name="moza_wheel_r5" type="wheel" id="{0004346E-0000-0000-0000-504944564944}" priority="100"/>
<device official="false" name="moza_wheel_r3" type="wheel" id="{0005346E-0000-0000-0000-504944564944}" priority="100"/>
<device official="false" name="moza_wheel_r12" type="wheel" id="{0006346E-0000-0000-0000-504944564944}" priority="100"/>
the path should be something like C:\Program Files (x86)\Steam\steamapps\common\F1 24\Content\input\Windows\devices