Both are grammatically correct, depending on their contexts
If you want to find out whether people actually write that way, you can google "what I learned is" and find examples.
If you want to find out whether people actually write that way, you can google "what I learned is" and find examples.