It's common and ethically just fine to share work with specific others at any stage of research, even prior to the advent of preprint archives/in fields where preprints remain uncommon. It's your work. You can share it to get feedback, to inform others of work you've already done so that they don't waste their efforts, etc.
I would not recommend sharing work unsolicited broadly to people you don't know. That's less about ethics and more about politeness around unsolicited communication. There may be cases where you want a specific individual, preferably someone you have already met, to give feedback on your work; then it's fine to share with them (you may want to ask first something like: "I am working on XYZ, would you be willing to have a look at it and offer your thoughts?"). If you want to share work broadly, however, the way to do it is with a preprint. It's fine to point people to that preprint through other means, like on a social media account, but don't spam them; that's not unethical, but it is rude.
Exceptions: patentable work is legally complicated. Don't share such work without understanding the legal implications. Additionally, if you are under any additional contract terms for the work you're doing make sure you are aware of those terms, like if you are being funded by a private company.