Hello & welcome,
Front teeth if hitting each other & paining immediately after getting the fillings replaced, then no doubt the newly placed fillings are having high points on them.
If there are high points, then pain & discomfort will go on increasing with time & there might be vertical bone loss due to constant trauma to the tooth caused by pressure by higher fillings.
Even the higher fillings are more prone to get cracked or split as they are exposed to heavier loads due to early contact with the opposing tooth or filling .
Visit your dentist
as soon as possible & check the newly placed fillings for proper height adjustments which can be done by dentist by clearing those high points with air roaters.
You can go for second opinion
to remove these high points.
Use of mild painkillers is expected until the teeth are treated & pain is removed.