Help how to stop Brest feeding !!

So my son is 2 and still bf sometimes for comfort or to go to sleep but I am pregnant now and I am so sensitive plus he is bitting me now , what method did u use for them to want to stop ? I was going to use like a black mask cream so he can kinda get scared and not want to anymore? lol