I wrote a blog post on how to recover those lost rules - How To Restore Cursor User Rules - meirg
The gist of it:
brew install sqlite
Then:
sqlite3 "/Users/$(whoami)/Library/Application Support/Cursor/User/globalStorage/state.vscdb" \
"SELECT value FROM ItemTable WHERE key = 'aicontext.personalContext';"