Command "sudo service mongod start/stop/status" throws long error "Invalid command: start/stop/status" - Ubuntu 22.04 and MongoDB 6.0

I used to have this error ‘mongod: unrecognized service’ when I do “sudo service mongod start/stop/status”. Somehow the next day, the error becomes ‘Invalid command: start/stop/status’.