What gets rid of blood on a pillowcase that was caused by a nosebleed and washing it straight away didn’t help?

You need a spray cleaner that breaks down proteins. SHOUT and Folex carpet cleaner both would help.

Just don’t run the pillowcase through the dryer. That can only set the stain and make it harder to remove later.