Place it immediately after the mistake in your edit, then follow it with a funny ha ha laugh to soften the apology and signal that you are joking. If the other person accepts it, add a yeah reaction next to close the exchange with a clean finish.