Hey,
Yes you're correct, this is a fairly common problem - most people get an exhaust shop to sort it out or just ditch the o2 sensor and lose some fuel economy haha.
On a friends' car, we just made a simple flange out of some steel bar, and drilled an appropriate hole in the exhaust (headers actually, but anywhere at the start of the exhaust is fine too) and welded it on. It was very simple, took half an hour.
This is how they've done it on a set of greddy headers. It looks like it has some ~15mm tube to extend the flange out a bit.