The problem is solved.
GEOSCoordSeq_getXY is in the GEOS library.Steps taken:
Check with the Yast software manager which GEOS version is installed.
This version should be 3.9.
If another version than 3.9 is installed, replace it with 3.9.
I had the same issue in Windows while using QGIS 3.16. So this is for anyone using Windows.
Check this site on installing Python packages
You might realize you are missing the following .dll files
Install them ...