Chasing your dog with a treat is not appropriate. It can cause anxiety, encourage unwanted behaviors, and lead to accidental injury.
Better Alternatives
Hand-feed the treat, drop it on the floor after a sit command, or use a puzzle toy. Positive reinforcement builds good behavior without stress or risk.