Export to DXF (then import from DXF) loses dimensions

I exported a drawing to a dxf file. I then re-imported that dxf file into sketchup to make sure it looked good. All the dimensions and text were gone. How do I export and keep all the text in the dxf file?

It is not possible.
The importers concentrate on geometry - they do not include dims/text.

SketchUp DXF export does include the dimensioning.
But as @TIG says, SU’s DXF importers ignore dimensions and text.

If you don’t have a CAD application to open the DXF file exported from SU, then use a DXF viewer.
Autodesk offers several Free DWG/DXF Viewers