@michlyntyres, in addition to what @SheriGR has suggested., and if you don't have Mods or Custom Content in your game, then you can try the following:
1) Introduce your Sim with the strange Sim (if you can), so they are in their Contacts list, if you have not already done so.
2) Travel somewhere off your lot that requires a loading screen, such as another neighborhood, and when asked if you want to travel with anyone, select the Sim that is stuck in your house.
3) Once at the travel location (like a bar, museum, park, festival, gym etc.) you can send your Sim home by clicking on the house icon in their portrait. ( If you select to travel home via the map, the strange Sim may follow you home).
This may or may not fix your problem. It has sometimes worked for me, but not other times. Still, it is worth a try! Basically, you are inviting them out to ditch them ! 🤨😃
Please update us on your progress ! Best of luck! 🤞