Even if it is an old freewheel, you can DIY...if you can be bothered and have some tools. You can do it on the wheel, laid flat IIRC.
Undo the locking ring (i used to use a pin punch and hammer), remove it and the gears will lift off. Be ready for all the bearings (2 sets of them IIRC)..best to do it on a piece of rag or in a tray, something to catch any that fall out.
This exposes the pawls (ratchets). Clean, grease all moving parts and re-assemble. Its a bit fiddly, then refit the locking ring (preferably with some threadlock..although i didnt used to)
If you can source a new freewheell cheap, its probably not worth the hassle, but if its an old hack or you just want to try, its interesting and do-able. I used to do this aged 13....so it isnt that hard.