I have been to Paris on a solo trip in 2019 and honestly my experience was nothing like yours. i believe as far as you take your precautions against thefts, you should be fine. And obviously in an unknown country, be it France or Germany or Italy or India, you need to avoid dark alleys and in general being out on foot after dark if you aren't travelling in a group. This experience could have been anywhere. By the way if you want to see the real Paris, you shouldn't have just gone to Eiffel and Louvre (which are the hot spots for only tourists), but also Montmartre, Giverney and Marais.