The problem with a squirrel for a pet is that since they are rodents they have to chew/gnaw or their incisors will get too long. Keeping them supplied with enough stuff to gnaw on can get problematic really fast. I've seen them gnaw through copper and galvanized flashing to get into attics so even a metal cage might not hold them for long.