Shaykh Muhammad Bā Jammāl (may Allāh preserve him) said it is legislated for the one praying in congregation to mention the correct verse(s) when the Imām makes an error in his recitation and bring any other errors to his attention by saying 'subhanAllāh' based on the following two hādīthayn:
[أنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى فِي الْفَجْرِ فَتَرَكَ آيَةً، فَلَمَّا صَلَّى قَالَ : " أفِي الْقَوْمِ أبَيُّ بْنُ كَعْبٍ ؟"
[The Prophet ﷺ forgot a verse during the Fajr prayer so when he finished the prayer he said (ﷺ): "Is Ubay Ibn K'ab in the congregation?"] meaning why did you not correct me Oh Ubay?.
This hadith was recorded in Ahmad (15365) and graded 'Sahih' by The Sheikh.
The Prophet ﷺ also said:
[مَنْ رَابَهُ شَيْءٌ فِي صَلَاتِهِ فَلْيُسَبِّحْ ؛ فَإِنَّهُ إذَا سَبَّحَ الْتُفِتَ إِلَيْهِ، وَإِنَّمَا التَّصْفِيقُ لِلنِّسَاءِ ".]
[Whoever doubts something in his (i.e. the Imām's) prayer, then let him say subhanAllāh, because when he says subhanAllāh he will turn towards him and clapping (when the Imām makes a mistake) is only for women.] Sahih Al-Bukhāri and Muslim.
Remember that the goal of correcting the Imam is to ensure the correctness and validity of the prayer, while also upholding the principles of respect, humility, and unity within the prayer congregation.
All praise is due to Allah we ask Him to bless the Prophet Sallah Llah Alei Wasalam and the companions and let us die on the path of Qur'an and Sunnah.