Phillips made programmable chips to do this back in the day costing only a few cents. Both extraction and insertion.
They used to use them in most integrated digital television chassis until analog teletext was all but eradicated about 2-3 years ago and they stopped using them.