Check the SQL log for the actual version. An upgraded version will retain the same folder name which is misleading. In this example, "MSSQL11" indicates that the SQL version is 2012. The error log shows 2022.
Program Files\Microsoft SQL Server\MSSQL11.BCFRAMER\MSSQL\LOG\ERRORLOG
The first line of the file shows the actual version.