After delving around , What worked for;
make sure you have the ksp version with a prefix of the kotlin version
Sync after adding the room library then add the ksp one and sync again, don't sync all together
then ofcourse ensure you are using compatible versions of ksp and kotlin