The Redmi Note 5 was launched back in 2017, running Snapdragon 625 with MIUI 9.5 based Android 8.1 Oreo. It has since picked the Android 9 Pie. However, in the last couple of months, the device has not received any form of support, and amid the arrival of MIUI 12 update on the device, Xiaomi has now released a new global stable update for the Redmi Note 5.
The update is based on MIUI 11. It brings the August security patch to the device in a 523MB size package, and with a version number, MIUI 11.0.5.0 PEIMIXM
It was launched with Oreo according to this blog, not Android 7
From what I read, your device does not have stock upgrade to Android 10. You can look for custom ROMs on XDA.