That looks just like rosemary! Maybe the app identified it wrong, pincushion peperomia is a succulent and has much fuller leaves. One way to know for sure is by the smell.
Definitely looks like rosemary. You can easily tell by the smell as it will be quite strong. I have a pincushion plant and they look like green beans. Itβs even called βstring of beansβ as an alternate name.