Germany imported Electric from France during summer 2023, due to lower energy costs in neighboring countrys and high Co2 certificate prices.
In total, Germany has been a net Exporter for Energy in 2023.
https://www.ceicdata.com/en/germany/electricity-imports-and-exports/electricity-balance-france
And while Germany has been an importer from France in general, this switched in 2022 when France nuclear reactors had to be shut down due to a record warm summer, showing how nuclear is not fit to withhold the stresses of the climate crisis upon us.
https://www.ceicdata.com/en/germany/electricity-imports-and-exports/electricity-balance-france
As too your other statement I'd like to ask for a source. I found nothing pointing towards this.
https://www.statista.com/statistics/1332783/german-gas-imports-from-russia/