This definitely feels like play aggression. Your strategies for dealing with it should revolve around anticipating it and preventing it before the cat gets around to biting you by getting its energy out in acceptable ways first.
Play with your cat a lot more.
The more you can tire your cat out, the less energy it will have for biting you. The standard way is interactive play sessions. A cat wand toy is particularly good for this because it's always in your hand, so there's no downtime where you have to go fetch the toy, and the wand will keep the cat at a safe distance from you. You can and should put a lot of energy into really getting the wand toy going. The more energetic you make the toy, the more energy the cat will have to use to catch it. These play sessions are best around meal times, as that's typically when cats are the most active. Cats tend to play in a short burst, followed by some resting and watching, then another burst. Make sure you really tire the cat out to the point where it has no interest left. The cat should then go to sleep.
There are also possible alternatives to interactive play, such as leash training your cat or clicker training your cat (which it sounds like your cat might respond to really well because it's already very treat motivated.)
You could even get another cat, though another cat could possibly create complications. They may or may not get along, and the other cat may or may not be happy to play with your existing cat. It's pretty hard to tell sometimes when introducing a new cat how they will interact.
Always toys, never hands.
It's very important to never play with your cat using your hands, feet, or what have you, so the cat will have less of an association of your hands with play. Always use toys to play with your cat instead. If the cat tries to go for your hands or feet, try to make them more boring by ignoring it, or even try making a "yipe" sort of noise, as if you are in pain, which hopefully the cat will respond to by letting go. Some cats are naturally very gentle when playing with others, but your cat clearly is not, and should be always discouraged from playing with humans in this way.
Redirect your cat.
Always keep a toy in your pocket and ready. This could be something the cat can pounce on and wrestle with, or you could even try a laser pointer. Keep tabs on your cat, especially when you are doing an activity that you notice it tends to pounce on you. Look for signs the cat is getting ready to pounce: the cat starts to get tense, it hunkers down, it might wiggle its butt, or its eyes dilate. When you notice those behaviors, get out your distraction toy. Do it right, and your cat will go for the toy and ignore you.
Keep the cat away when necessary.
For those times you really cannot pay attention to your cat, like you are sleeping, or you need full concentration on work, it is okay to simply shut your cat out of the room. Just make sure your cat is being well entertained when you do have time, so it is not being neglected. The cat will probably not like this, and may attempt to make noises at the door. Try to ignore these noises, or if it's really necessary, you can get a motion activated air sprayer and leave it just outside your door. Cats hate these and avoid them, so the cat should learn to leave the door alone when it's closed.
Fix "danger zones."
What I mean by "danger zone" is an area or circumstance where the cat particularly acts out this bad habit. A good example of a "danger zone," is under the bed, where it lies in wait for you to walk by, then it ambushes you. Currently, you run and jump on the bed to avoid this, but I suspect this is not a good approach, because it makes it look like you are playing, which reinforces the behavior. Instead, what I suggest is blocking the cat's access to under the bed entirely. That way it can no longer play this inappropriate game. Similarly, think of any other go-to methods for the cat to "attack" you, and make it impossible for the cat to continue.
Though it hurts, never hit the cat.
At best, your reaction to hit the cat is probably encouraging it to continue because it looks to the cat like you are responding to its playing. At worst, you are actually hurting it. Try your best to ignore the cat when it actually does bite you, and make yourself as boring as possible, or as I stated earlier, try making a "yipe" noise, if you know your cat responds to that. I also recommend if you can to wear long pants and sleeves, so it will hurt less when the cat tries to bite.
Though normally I don't think a squirt bottle is an effective way to discipline, this is a circumstance where it can help to get the cat off you when it is hurting you in a way that definitely won't harm the cat nor accidentally encourage it. See if you can find one that is small enough to fit in your pocket and doesn't leak. However, this should be a last resort only, as using the squirt bottle too much might damage your relationship with the cat. You should be relying on the various measures I've described first to prevent the biting before it ever occurs. If you find yourself using the squirt gun quite often, you should redouble your efforts in prevention.